pike.git
/
src
/
pike_rusage.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/pike_rusage.h:3:
|| Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. */ #ifndef PIKE_RUSAGE_H #define PIKE_RUSAGE_H #include "global.h" #include <time.h>
-
#
if
defined (
_POSIX_TIMERS
)
+
#
ifdef
_POSIX_TIMERS
#if _POSIX_TIMERS > 0 #ifdef _POSIX_THREAD_CPUTIME # if _POSIX_THREAD_CPUTIME != -1 # if _POSIX_THREAD_CPUTIME != 0 /* Know it to be available at compile time. */ # define HAVE_POSIX_THREAD_GCT # else /* Might be available at run time - have to check with sysconf(3). */ # endif # define MIGHT_HAVE_POSIX_THREAD_GCT # endif
-
#endif
+
#endif
/* _POSIX_THREAD_CPUTIME */
#ifdef _POSIX_CPUTIME # if _POSIX_CPUTIME != -1 # if _POSIX_CPUTIME != 0 # define HAVE_POSIX_PROCESS_GCT # endif # define MIGHT_HAVE_POSIX_PROCESS_GCT # endif
-
#endif
+
#endif
/* _POSIX_CPUTIME */
#ifdef _POSIX_MONOTONIC_CLOCK # if _POSIX_MONOTONIC_CLOCK != -1 # if _POSIX_MONOTONIC_CLOCK != 0 # define HAVE_POSIX_MONOTONIC_GRT # endif # define MIGHT_HAVE_POSIX_MONOTONIC_GRT # endif
-
#endif
+
#endif
/* _POSIX_MONOTONIC_CLOCK */
/* The POSIX CLOCK_REALTIME clock is guaranteed to exist if * _POSIX_TIMERS exist. */ #define HAVE_POSIX_REALTIME_GRT #define MIGHT_HAVE_POSIX_REALTIME_GRT #endif /* _POSIX_TIMERS > 0 */ #endif /* _POSIX_TIMERS */ #ifdef CONFIGURE_TEST_FALLBACK_GCT