Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _GL_SYS_TIMES_H
00027
00028 # if __GNUC__ >= 3
00029 #pragma GCC system_header
00030 # endif
00031
00032
00033 # if 1
00034 # include_next <sys/times.h>
00035 # endif
00036
00037 # define _GL_SYS_TIMES_H
00038
00039
00040
00041 # ifndef __GLIBC__
00042 # include <time.h>
00043 # endif
00044
00045
00046
00047
00048
00049 #ifndef _GL_ARG_NONNULL
00050 # if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
00051 # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
00052 # else
00053 # define _GL_ARG_NONNULL(params)
00054 # endif
00055 #endif
00056
00057
00058 #ifndef _GL_WARN_ON_USE
00059
00060 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
00061
00062 # define _GL_WARN_ON_USE(function, message) \
00063 extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
00064 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00065
00066 # define _GL_WARN_ON_USE(function, message) \
00067 extern __typeof__ (function) function
00068 # else
00069 # define _GL_WARN_ON_USE(function, message) \
00070 _GL_WARN_EXTERN_C int _gl_warn_on_use
00071 # endif
00072 #endif
00073
00074
00075
00076
00077
00078
00079
00080 #ifndef _GL_WARN_ON_USE_CXX
00081 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
00082 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00083 extern rettype function parameters_and_attributes \
00084 __attribute__ ((__warning__ (msg)))
00085 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
00086
00087 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00088 extern rettype function parameters_and_attributes
00089 # else
00090 # define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
00091 _GL_WARN_EXTERN_C int _gl_warn_on_use
00092 # endif
00093 #endif
00094
00095
00096
00097 #ifndef _GL_WARN_EXTERN_C
00098 # if defined __cplusplus
00099 # define _GL_WARN_EXTERN_C extern "C"
00100 # else
00101 # define _GL_WARN_EXTERN_C extern
00102 # endif
00103 #endif
00104
00105 # ifdef __cplusplus
00106 extern "C" {
00107 # endif
00108
00109 # if !1
00110 # if !GNULIB_defined_struct_tms
00111
00112 struct tms
00113 {
00114 clock_t tms_utime;
00115 clock_t tms_stime;
00116
00117 clock_t tms_cutime;
00118 clock_t tms_cstime;
00119 };
00120 # define GNULIB_defined_struct_tms 1
00121 # endif
00122 # endif
00123
00124 # if 1
00125 # if !1
00126 extern clock_t times (struct tms *buffer) _GL_ARG_NONNULL ((1));
00127 # endif
00128 # elif defined GNULIB_POSIXCHECK
00129 # undef times
00130 # if HAVE_RAW_DECL_TIMES
00131 _GL_WARN_ON_USE (times, "times is unportable - "
00132 "use gnulib module times for portability");
00133 # endif
00134 # endif
00135
00136 # ifdef __cplusplus
00137 }
00138 # endif
00139
00140 #endif