19 @PRAGMA_SYSTEM_HEADER@
29 #if (((defined __need_time_t || defined __need_clock_t \ 30 || defined __need_timespec) \ 31 && !defined __MINGW32__) \ 32 || defined _@GUARD_PREFIX@_TIME_H) 34 # @INCLUDE_NEXT@ @NEXT_TIME_H@ 38 # define _@GUARD_PREFIX@_TIME_H 40 # @INCLUDE_NEXT@ @NEXT_TIME_H@ 55 # if ! @TIME_H_DEFINES_STRUCT_TIMESPEC@ 56 # if @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@ 57 # include <sys/time.h> 58 # elif @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@ 60 # elif @UNISTD_H_DEFINES_STRUCT_TIMESPEC@ 68 # if !GNULIB_defined_struct_timespec 70 # define timespec rpl_timespec 76 # define GNULIB_defined_struct_timespec 1 86 # if !GNULIB_defined_struct_time_t_must_be_integral 93 unsigned int __floating_time_t_unsupported : (time_t) 1;
95 # define GNULIB_defined_struct_time_t_must_be_integral 1 101 # if @GNULIB_NANOSLEEP@ 102 # if @REPLACE_NANOSLEEP@ 103 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 104 # define nanosleep rpl_nanosleep 112 # if ! @HAVE_NANOSLEEP@ 126 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 128 # define tzset rpl_tzset 143 # if @REPLACE_MKTIME@ 144 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 145 # define mktime rpl_mktime 159 # if @REPLACE_LOCALTIME_R@ 160 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 162 # define localtime_r rpl_localtime_r 170 # if ! @HAVE_DECL_LOCALTIME_R@ 178 # if @HAVE_DECL_LOCALTIME_R@ 181 # if @REPLACE_LOCALTIME_R@ 182 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 184 # define gmtime_r rpl_gmtime_r 192 # if ! @HAVE_DECL_LOCALTIME_R@ 200 # if @HAVE_DECL_LOCALTIME_R@ 208 # if @GNULIB_LOCALTIME@ || @REPLACE_LOCALTIME@ 209 # if @REPLACE_LOCALTIME@ 210 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 212 # define localtime rpl_localtime 223 # if 0 || @REPLACE_GMTIME@ 224 # if @REPLACE_GMTIME@ 225 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 227 # define gmtime rpl_gmtime 241 # if @GNULIB_STRPTIME@ 242 # if ! @HAVE_STRPTIME@ 258 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 259 # define ctime rpl_ctime 272 # if @GNULIB_STRFTIME@ 273 # if @REPLACE_STRFTIME@ 274 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 275 # define strftime rpl_strftime 278 const char *__fmt,
const struct tm *__tp)
281 const char *__fmt,
const struct tm *__tp));
284 const char *__fmt,
const struct tm *__tp));
289 # if defined _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@ 290 typedef struct tm_zone *timezone_t;
296 (timezone_t __tz, time_t
const *
restrict __timer,
299 (timezone_t __tz, time_t
const *
restrict __timer,
302 (timezone_t __tz,
struct tm *
restrict __result)
305 (timezone_t __tz,
struct tm *
restrict __result));
310 # if @REPLACE_TIMEGM@ 311 # if !(defined __cplusplus && defined GNULIB_NAMESPACE) 313 # define timegm rpl_timegm 329 # if defined GNULIB_POSIXCHECK 331 _GL_WARN_ON_USE (asctime,
"asctime can overrun buffers in some cases - " 332 "better use strftime (or even sprintf) instead");
334 # if defined GNULIB_POSIXCHECK 336 _GL_WARN_ON_USE (asctime,
"asctime_r can overrun buffers in some cases - " 337 "better use strftime (or even sprintf) instead");
339 # if defined GNULIB_POSIXCHECK 342 "better use strftime (or even sprintf) instead");
344 # if defined GNULIB_POSIXCHECK 346 _GL_WARN_ON_USE (asctime,
"ctime_r can overrun buffers in some cases - " 347 "better use strftime (or even sprintf) instead");
Definition: time-internal.h:21
#define _GL_FUNCDECL_SYS(func, rettype, parameters_and_attributes)
Definition: inet.h:168
time_t mktime_z(timezone_t tz, struct tm *tm)
Definition: time_rz.c:306
timezone_t tzalloc(char const *name)
Definition: time_rz.c:95
struct tm * localtime_r(time_t const *restrict t, struct tm *restrict tp)
Definition: time_r.c:41
#define _GL_CXXALIAS_RPL(func, rettype, parameters)
Definition: inet.h:180
void tzfree(timezone_t tz)
Definition: time_rz.c:196
#define _GL_CXXALIASWARN(func)
Definition: inet.h:337
time_t tv_sec
Definition: time.in.h:73
time_t timegm(struct tm *tmp)
Definition: timegm.c:35
struct tm * gmtime_r(time_t const *restrict t, struct tm *restrict tp)
Definition: time_r.c:35
void tzset(void)
Definition: tzset.c:34
#define _GL_CXXALIAS_SYS(func, rettype, parameters)
Definition: inet.h:253
struct tm * localtime_rz(timezone_t tz, time_t const *t, struct tm *tm)
Definition: time_rz.c:287
long int tv_nsec
Definition: time.in.h:74
#define _GL_FUNCDECL_RPL(func, rettype, parameters_and_attributes)
Definition: inet.h:156
#define restrict
Definition: config.h:1858
#define _GL_WARN_ON_USE(function, message)
Definition: inet.h:474