]> rtime.felk.cvut.cz Git - orte.git/commitdiff
Fix warning about implicit declaration of umask()
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 9 Sep 2013 22:58:29 +0000 (00:58 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 9 Sep 2013 22:58:29 +0000 (00:58 +0200)
I'm not yet sure whether the autoconf generated
orte/include/orte/orte_config.h is created correctly because
ORTE_PACKAGE and ORTE_VERSION is missing. But everything compiles
correctly so I leave it as it is.

orte/include/orte/orte_config_omk_linux.h
orte/manager/ortemanager.c

index be4c4ce19778c6431e11775c6b8dda869ec079a2..3b9a89cb138291232910da1af63caf471b35d167 100644 (file)
@@ -1,5 +1,11 @@
-/* orte/include/config.h.  Generated by configure.  */
-/* orte/include/config.h.in.  Generated from configure.in by autoheader.  */
+/* orte/include/orte/orte_config.h.  Generated from orte_config.h.in by configure.  */
+/* orte/include/orte/orte_config.h.in.  Generated from configure.ac by autoheader.  */
+
+/* Define if building universal (internal helper macro) */
+/* #undef AC_APPLE_UNIVERSAL_BUILD */
+
+/* Define to enable JORTE's compilation */
+/* #undef CONFIG_JORTE */
 
 /* Define if is target CYGWIN */
 /* #undef CONFIG_ORTE_CYGWIN */
 /* Define if kernel is RTLinux patched */
 /* #undef CONFIG_ORTE_RTL */
 
+/* Define if onetd stack is found */
+/* #undef CONFIG_ORTE_RTL_ONETD */
+
+/* Define if wIP stack is found */
+/* #undef CONFIG_ORTE_RTL_WIP */
+
 /* Define if is target a unix system */
 #define CONFIG_ORTE_UNIX 1
 
 /* Define to 1 if you have the <ctype.h> header file. */
 #define HAVE_CTYPE_H 1
 
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if you have the <errno.h> header file. */
 #define HAVE_ERRNO_H 1
 
 /* Define to 1 if you have the <fcntl.h> header file. */
 /* Define for ORTE getopt_long self implemetation */
 /* #undef HAVE_GETPOT_LONG_ORTE */
 
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if you have the `c_r' library (-lc_r). */
+/* #undef HAVE_LIBC_R */
+
 /* Define to 1 if you have the `nsl' library (-lnsl). */
 #define HAVE_LIBNSL 1
 
+/* Define to 1 if you have the `popt' library (-lpopt). */
+/* #undef HAVE_LIBPOPT */
+
 /* Define to 1 if you have the `pthread' library (-lpthread). */
 #define HAVE_LIBPTHREAD 1
 
 /* Define to 1 if you have the <linux/types.h> header file. */
 /* #undef HAVE_LINUX_TYPES_H */
 
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
 /* Define to 1 if you have the <netdb.h> header file. */
 #define HAVE_NETDB_H 1
 
 /* Define to 1 if you have the <nic.h> header file. */
 /* #undef HAVE_NIC_H */
 
+/* Define to 1 if you have the <onetd.h> header file. */
+/* #undef HAVE_ONETD_H */
+
 /* Define to 1 if you have the <pthread.h> header file. */
 #define HAVE_PTHREAD_H 1
 
 /* Define to 1 if you have the <stdlib.h> header file. */
 #define HAVE_STDLIB_H 1
 
-/* Define to 1 if you have the `strdup' function. */
-#define HAVE_STRDUP 1
+/* Define to 1 if you have the <strings.h> header file. */
+#define HAVE_STRINGS_H 1
 
 /* Define to 1 if you have the <string.h> header file. */
 #define HAVE_STRING_H 1
 /* Define to 1 if you have the <sys/sockio.h> header file. */
 /* #undef HAVE_SYS_SOCKIO_H */
 
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#define HAVE_SYS_STAT_H 1
+
 /* Define to 1 if you have the <sys/time.h> header file. */
 #define HAVE_SYS_TIME_H 1
 
 /* Define to 1 if you have the <unistd.h> header file. */
 #define HAVE_UNISTD_H 1
 
+/* Define to 1 if you have the <w32api/windows.h> header file. */
+/* #undef HAVE_W32API_WINDOWS_H */
+
 /* Define to 1 if you have the <windows.h> header file. */
 /* #undef HAVE_WINDOWS_H */
 
 /* Define to 1 if you have the <ws2tcpip.h> header file. */
 /* #undef HAVE_WS2TCPIP_H */
 
-/* Name of package */
-#define ORTE_PACKAGE "orte"
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+   */
+#define LT_OBJDIR ".libs/"
+
+/* Define to 1 if your C compiler doesn't accept -c and -o together. */
+/* #undef NO_MINUS_C_MINUS_O */
 
 /* Define to the address where bug reports for this package should be sent. */
-#define ORTE_PACKAGE_BUGREPORT "petr.smolik@wo.cz"
+#define ORTE_PACKAGE_BUGREPORT "orte@rtime.felk.cvut.cz"
 
 /* Define to the full name of this package. */
 #define ORTE_PACKAGE_NAME "orte"
 /* Define to the one symbol short name of this package. */
 #define ORTE_PACKAGE_TARNAME "orte"
 
+/* Define to the home page for this package. */
+#define ORTE_PACKAGE_URL "http://orte.sf.net"
+
 /* Define to the version of this package. */
 #define ORTE_PACKAGE_VERSION "0.3.3"
 
 /* Define to 1 if you have the ANSI C header files. */
 #define STDC_HEADERS 1
 
-/* Version number of package */
-#define ORTE_VERSION "0.3.3"
-
-/* Define to 1 if your processor stores words with the most significant byte
-   first (like Motorola and SPARC, unlike Intel and VAX). */
-/* #undef WORDS_BIGENDIAN */
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+   significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+#  define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+/* #  undef WORDS_BIGENDIAN */
+# endif
+#endif
 
 
 #ifndef _GNU_SOURCE
   #define _GNU_SOURCE
 #endif
 
-#include <endian.h>
-#ifdef __BYTE_ORDER
-#if __BYTE_ORDER == __BIG_ENDIAN
-#define WORDS_BIGENDIAN 1
-#endif
-#endif
 
 /* Define to empty if `const' does not conform to ANSI C. */
 /* #undef const */
index 142468626b5aea0866ffc7d0f96fc35d721579b9..e5dd85181ee5eb635cb907197091fa09afc05a22 100644 (file)
@@ -77,6 +77,9 @@ int managerStop(void) {
 #endif
 
 #ifdef CONFIG_ORTE_UNIX
+#ifdef HAVE_SYS_STAT_H
+  #include <sys/stat.h>                /* For umask() */
+#endif
 //Unix daemon support
 void waitForEndingCommand(void) {
        sigset_t sigset;