Changeset 745 for trunk/server/lib/replace/system
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/lib/replace/system/config.m4
r620 r745 7 7 AC_CHECK_HEADERS(sys/select.h) 8 8 9 # poll 10 AC_CHECK_HEADERS(poll.h) 11 AC_CHECK_FUNCS(poll,[],[LIBREPLACEOBJ="${LIBREPLACEOBJ} $libreplacedir/poll.o"]) 12 9 13 # time 10 14 AC_CHECK_HEADERS(sys/time.h utime.h) 11 15 AC_HEADER_TIME 12 16 AC_CHECK_FUNCS(utime utimes) 17 18 AC_CACHE_CHECK([if gettimeofday takes TZ argument],libreplace_cv_HAVE_GETTIMEOFDAY_TZ,[ 19 AC_TRY_RUN([ 20 #include <sys/time.h> 21 #include <unistd.h> 22 main() { struct timeval tv; exit(gettimeofday(&tv, NULL));}], 23 libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=no,libreplace_cv_HAVE_GETTIMEOFDAY_TZ=yes)]) 24 if test x"$libreplace_cv_HAVE_GETTIMEOFDAY_TZ" = x"yes"; then 25 AC_DEFINE(HAVE_GETTIMEOFDAY_TZ,1,[Whether gettimeofday() is available]) 26 fi 13 27 14 28 # wait -
trunk/server/lib/replace/system/network.h
r480 r745 310 310 #define ss_family sin6_family 311 311 #define HAVE_SS_FAMILY 1 312 #else 312 #else /*HAVE_STRUCT_SOCKADDR_IN6*/ 313 313 #define sockaddr_storage sockaddr_in 314 314 #define ss_family sin_family 315 315 #define HAVE_SS_FAMILY 1 316 #endif 317 #endif 316 #endif /*HAVE_STRUCT_SOCKADDR_IN6*/ 317 #endif /*HAVE_STRUCT_SOCKADDR_STORAGE*/ 318 318 319 319 #ifndef HAVE_SS_FAMILY … … 334 334 */ 335 335 # define IOV_MAX 512 336 # else337 # error IOV_MAX and UIO_MAXIOV undefined338 336 # endif 339 337 # endif -
trunk/server/lib/replace/system/passwd.h
r456 r745 102 102 103 103 #ifdef NSS_WRAPPER 104 #ifndef NSS_WRAPPER_DISABLE 104 105 #ifndef NSS_WRAPPER_NOT_REPLACE 105 106 #define NSS_WRAPPER_REPLACE 106 #endif 107 #endif /* NSS_WRAPPER_NOT_REPLACE */ 107 108 #include "../nss_wrapper/nss_wrapper.h" 108 #endif 109 #endif /* NSS_WRAPPER_DISABLE */ 110 #endif /* NSS_WRAPPER */ 109 111 110 112 #endif -
trunk/server/lib/replace/system/readline.h
r414 r745 44 44 45 45 #ifdef HAVE_NEW_LIBREADLINE 46 # define RL_COMPLETION_CAST (rl_completion_func_t *) 46 #ifdef HAVE_CPPFUNCTION 47 # define RL_COMPLETION_CAST (CPPFunction *) 48 #elif HAVE_RL_COMPLETION_T 49 # define RL_COMPLETION_CAST (rl_completion_t *) 50 #else 51 # define RL_COMPLETION_CAST 52 #endif 47 53 #else 48 54 /* This type is missing from libreadline<4.0 (approximately) */ -
trunk/server/lib/replace/system/select.h
r414 r745 39 39 #endif 40 40 41 #ifdef HAVE_POLL 42 43 #include <poll.h> 44 45 #else 46 47 /* Type used for the number of file descriptors. */ 48 typedef unsigned long int nfds_t; 49 50 /* Data structure describing a polling request. */ 51 struct pollfd 52 { 53 int fd; /* File descriptor to poll. */ 54 short int events; /* Types of events poller cares about. */ 55 short int revents; /* Types of events that actually occurred. */ 56 }; 57 58 /* Event types that can be polled for. These bits may be set in `events' 59 to indicate the interesting event types; they will appear in `revents' 60 to indicate the status of the file descriptor. */ 61 #define POLLIN 0x001 /* There is data to read. */ 62 #define POLLPRI 0x002 /* There is urgent data to read. */ 63 #define POLLOUT 0x004 /* Writing now will not block. */ 64 #define POLLRDNORM 0x040 /* Normal data may be read. */ 65 #define POLLRDBAND 0x080 /* Priority data may be read. */ 66 #define POLLWRNORM 0x100 /* Writing now will not block. */ 67 #define POLLWRBAND 0x200 /* Priority data may be written. */ 68 #define POLLERR 0x008 /* Error condition. */ 69 #define POLLHUP 0x010 /* Hung up. */ 70 #define POLLNVAL 0x020 /* Invalid polling request. */ 71 72 /* define is in "replace.h" */ 73 int rep_poll(struct pollfd *fds, nfds_t nfds, int timeout); 74 41 75 #endif 76 77 #endif -
trunk/server/lib/replace/system/time.h
r414 r745 47 47 #endif 48 48 49 #ifndef HAVE_STRUCT_TIMESPEC 50 struct timespec { 51 time_t tv_sec; /* Seconds. */ 52 long tv_nsec; /* Nanoseconds. */ 53 }; 54 #endif 55 49 56 #ifndef HAVE_MKTIME 50 57 /* define is in "replace.h" */ … … 67 74 #endif 68 75 76 #ifndef HAVE_CLOCK_GETTIME 77 /* CLOCK_REALTIME is required by POSIX */ 78 #define CLOCK_REALTIME 0 79 typedef int clockid_t; 80 int rep_clock_gettime(clockid_t clk_id, struct timespec *tp); 69 81 #endif 82 /* make sure we have a best effort CUSTOM_CLOCK_MONOTONIC we can rely on */ 83 #if defined(CLOCK_MONOTONIC) 84 #define CUSTOM_CLOCK_MONOTONIC CLOCK_MONOTONIC 85 #elif defined(CLOCK_HIGHRES) 86 #define CUSTOM_CLOCK_MONOTONIC CLOCK_HIGHRES 87 #else 88 #define CUSTOM_CLOCK_MONOTONIC CLOCK_REALTIME 89 #endif 90 91 #endif -
trunk/server/lib/replace/system/wait.h
r620 r745 37 37 #endif 38 38 39 #ifndef SIGNAL_CAST40 #define SIGNAL_CAST (RETSIGTYPE (*)(int))41 #endif42 43 39 #ifdef HAVE_SETJMP_H 44 40 #include <setjmp.h>
Note:
See TracChangeset
for help on using the changeset viewer.