Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
sys/time.h is always defined nowadays
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 6 Mar 2016 22:03:29 +0000 (23:03 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 6 Mar 2016 22:03:29 +0000 (23:03 +0100)
CMakeLists.txt
include/simgrid_config.h.in
include/smpi/smpi.h
src/include/mc/datatypes.h
src/portable.h
tools/cmake/src/internal_config.h.in

index 3e68ce7..24dee6b 100644 (file)
@@ -283,7 +283,6 @@ CHECK_INCLUDE_FILE("sys/ptrace.h" HAVE_SYS_PTRACE_H)
 CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
 CHECK_INCLUDE_FILE("execinfo.h" HAVE_EXECINFO_H)
 CHECK_INCLUDE_FILE("signal.h" HAVE_SIGNAL_H)
 CHECK_INCLUDE_FILE("unistd.h" HAVE_UNISTD_H)
 CHECK_INCLUDE_FILE("execinfo.h" HAVE_EXECINFO_H)
 CHECK_INCLUDE_FILE("signal.h" HAVE_SIGNAL_H)
-CHECK_INCLUDE_FILE("sys/time.h" HAVE_SYS_TIME_H)
 CHECK_INCLUDE_FILE("sys/param.h" HAVE_SYS_PARAM_H)
 CHECK_INCLUDE_FILE("sys/sysctl.h" HAVE_SYS_SYSCTL_H)
 CHECK_INCLUDE_FILE("ucontext.h" HAVE_UCONTEXT_H)
 CHECK_INCLUDE_FILE("sys/param.h" HAVE_SYS_PARAM_H)
 CHECK_INCLUDE_FILE("sys/sysctl.h" HAVE_SYS_SYSCTL_H)
 CHECK_INCLUDE_FILE("ucontext.h" HAVE_UCONTEXT_H)
@@ -928,7 +927,6 @@ message("HAVE_VALGRIND_VALGRIND_H ....: ${HAVE_VALGRIND_VALGRIND_H}")
 message("HAVE_UNISTD_H ...............: ${HAVE_UNISTD_H}")
 message("HAVE_EXECINFO_H .............: ${HAVE_EXECINFO_H}")
 message("HAVE_SIGNAL_H ...............: ${HAVE_SIGNAL_H}")
 message("HAVE_UNISTD_H ...............: ${HAVE_UNISTD_H}")
 message("HAVE_EXECINFO_H .............: ${HAVE_EXECINFO_H}")
 message("HAVE_SIGNAL_H ...............: ${HAVE_SIGNAL_H}")
-message("HAVE_SYS_TIME_H .............: ${HAVE_SYS_TIME_H}")
 message("HAVE_DLFCN_H ................: ${HAVE_DLFCN_H}")
 
 message("")
 message("HAVE_DLFCN_H ................: ${HAVE_DLFCN_H}")
 
 message("")
index 10f75e0..f310d59 100644 (file)
@@ -1,7 +1,6 @@
 /* simgrid_config.h - Results of the configure made visible to user code    */
 
 /* simgrid_config.h - Results of the configure made visible to user code    */
 
-/* Copyright (c) 2009-2014. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2009-2016. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 #define SIMGRID_VERSION_PATCH @SIMGRID_VERSION_PATCH@
 
 #define SIMGRID_VERSION_STRING "@SIMGRID_VERSION_STRING@"
 #define SIMGRID_VERSION_PATCH @SIMGRID_VERSION_PATCH@
 
 #define SIMGRID_VERSION_STRING "@SIMGRID_VERSION_STRING@"
-
 #define SIMGRID_VERSION_BANNER "@SIMGRID_VERSION_BANNER@"
 
 /* Version X.Y.Z will get version number XYZ: all digits concatenated without dots
  * (with Y and Z must be on two positions)*/
 #define SIMGRID_VERSION_BANNER "@SIMGRID_VERSION_BANNER@"
 
 /* Version X.Y.Z will get version number XYZ: all digits concatenated without dots
  * (with Y and Z must be on two positions)*/
-
-#define MAKE_SIMGRID_VERSION(major, minor, patch)       \
-  (100UL * (100UL * (major) + (minor)) + (patch))
-#define SIMGRID_VERSION MAKE_SIMGRID_VERSION(SIMGRID_VERSION_MAJOR, \
-                                             SIMGRID_VERSION_MINOR, \
-                                             SIMGRID_VERSION_PATCH)
+#define MAKE_SIMGRID_VERSION(major, minor, patch)   (100UL * (100UL * (major) + (minor)) + (patch))
+#define SIMGRID_VERSION MAKE_SIMGRID_VERSION(SIMGRID_VERSION_MAJOR, SIMGRID_VERSION_MINOR, SIMGRID_VERSION_PATCH)
 
 /* Define to 1 if you have the <unistd.h> header file. */
 #cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
 
 
 /* Define to 1 if you have the <unistd.h> header file. */
 #cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
 
-/* Define to 1 if you have the <sys/time.h> header file. */
-#cmakedefine HAVE_SYS_TIME_H @HAVE_SYS_TIME_H@
-
 /* Whether mallocators were enabled in ccmake or not. */
 #define MALLOCATOR_COMPILED_IN @MALLOCATOR_IS_WANTED@
 
 /* Whether mallocators were enabled in ccmake or not. */
 #define MALLOCATOR_COMPILED_IN @MALLOCATOR_IS_WANTED@
 
index c40829c..e3eeca7 100644 (file)
@@ -11,9 +11,7 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
 #include <sys/time.h>
-#endif
 
 #include <stddef.h>
 #include <xbt/misc.h>
 
 #include <stddef.h>
 #include <xbt/misc.h>
index 28e76d6..bb32dba 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef MC_DATATYPE_H
 #define MC_DATATYPE_H
 
 #ifndef MC_DATATYPE_H
 #define MC_DATATYPE_H
 
-#include <simgrid_config.h>
+#include <src/internal_config.h>
 #include <xbt/base.h>
 
 #ifdef HAVE_UCONTEXT_H
 #include <xbt/base.h>
 
 #ifdef HAVE_UCONTEXT_H
index 9e5adda..4866871 100644 (file)
@@ -1,8 +1,6 @@
-/* portable -- header loading to write portable code                         */
-/* loads much more stuff than sysdep.h since the latter is in public interface*/
+/* portable -- header loading to write portable code within SimGrid         */
 
 
-/* Copyright (c) 2004-2010, 2012-2015. The SimGrid Team.
- * All rights reserved.                                                     */
+/* Copyright (c) 2004, 2016. The SimGrid Team. All rights reserved.         */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -33,9 +31,7 @@
 # include <sys/sysctl.h>
 #endif
 
 # include <sys/sysctl.h>
 #endif
 
-/****
- **** File handling
- ****/
+/* File handling */
 
 #include <fcntl.h>
 
 
 #include <fcntl.h>
 
 #  define O_BINARY 0
 #endif
 
 #  define O_BINARY 0
 #endif
 
-/****
- **** Time handling
- ****/
-
-#if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-#endif
+/* Time handling */
+#include <sys/time.h>
 #include <time.h>
 
 #include <time.h>
 
-/****
- **** Signals
- ****/
+/* Signals */
 #ifdef HAVE_SIGNAL_H
 # include <signal.h>
 #endif
 #ifdef HAVE_SIGNAL_H
 # include <signal.h>
 #endif
index a9a62ed..3d3f0f1 100644 (file)
 /* Define to 1 if you have the <sys/ptrace.h> header file. */
 #cmakedefine HAVE_SYS_PTRACE_H @HAVE_SYS_PTRACE_H@
 
 /* Define to 1 if you have the <sys/ptrace.h> header file. */
 #cmakedefine HAVE_SYS_PTRACE_H @HAVE_SYS_PTRACE_H@
 
-/* Define to 1 if you have the <sys/time.h> header file. */
-#cmakedefine HAVE_SYS_TIME_H @HAVE_SYS_TIME_H@
-
 /* Define to 1 if you have the <sys/types.h> header file. */
 #cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@
 
 /* Define to 1 if you have the <sys/types.h> header file. */
 #cmakedefine HAVE_SYS_TYPES_H @HAVE_SYS_TYPES_H@