Home
last modified time | relevance | path

Searched refs:time_t (Results 1 – 25 of 166) sorted by relevance

1234567

/glibc-2.36/timezone/
Dprivate.h405 # define time_tz time_t
423 static time_t sys_time(time_t *x) { return time(x); } in sys_time()
466 # undef time_t
467 # define time_t tz_time_t macro
503 char *ctime(time_t const *);
504 char *ctime_r(time_t const *, char *);
505 double difftime(time_t, time_t) ATTRIBUTE_CONST;
512 struct tm *gmtime(time_t const *);
513 struct tm *gmtime_r(time_t const *restrict, struct tm *restrict);
514 struct tm *localtime(time_t const *);
[all …]
Dzdump.c80 enum { atime_shift = CHAR_BIT * sizeof (time_t) - 2 };
81 static time_t const absolute_min_time =
82 ((time_t) -1 < 0
83 ? (- ((time_t) ~ (time_t) 0 < 0)
84 - (((time_t) 1 << atime_shift) - 1 + ((time_t) 1 << atime_shift)))
86 static time_t const absolute_max_time =
87 ((time_t) -1 < 0
88 ? (((time_t) 1 << atime_shift) - 1 + ((time_t) 1 << atime_shift))
98 static time_t hunt(timezone_t, char *, time_t, time_t);
99 static void show(timezone_t, char *, time_t, bool);
[all …]
/glibc-2.36/time/
Dtime.h76 extern time_t time (time_t *__timer) __THROW;
79 extern double difftime (time_t __time1, time_t __time0)
83 extern time_t mktime (struct tm *__tp) __THROW;
86 extern time_t __REDIRECT_NTH (time, (time_t *__timer), __time64);
87 extern double __REDIRECT_NTH (difftime, (time_t __time1, time_t __time0),
89 extern time_t __REDIRECT_NTH (mktime, (struct tm *__tp), __mktime64);
132 extern struct tm *gmtime (const time_t *__timer) __THROW;
136 extern struct tm *localtime (const time_t *__timer) __THROW;
140 extern struct tm*__REDIRECT_NTH (gmtime, (const time_t *__timer), __gmtime64);
141 extern struct tm *__REDIRECT_NTH (localtime, (const time_t *__timer),
[all …]
Dtst-mktime2.c29 # define TIME_T_MIN TYPE_MINIMUM (time_t)
32 # define TIME_T_MAX TYPE_MAXIMUM (time_t)
71 if (mktime (&tm) == (time_t)-1) in spring_forward_gap()
76 mktime_test1 (time_t now) in mktime_test1()
91 mktime_test (time_t now) in mktime_test()
94 mktime_test1 ((time_t) (TIME_T_MAX - now)); in mktime_test()
95 mktime_test1 ((time_t) (TIME_T_MIN + now)); in mktime_test()
119 time_t now; in bigtime_test()
123 if (now != (time_t) -1) in bigtime_test()
142 time_t t, delta; in do_test()
[all …]
Dtst-gmtime.c28 time_t t = 0; in do_test()
42 time_t t = 0; in do_test()
59 time_t t = 0x7fffffff; in do_test()
73 time_t t = 0x7fffffff; in do_test()
88 if (sizeof (time_t) < 8) in do_test()
92 time_t t = (time_t) 0x80000000ull; in do_test()
106 time_t t = (time_t) 0x80000000ull; in do_test()
Dtst-timegm.c24 do_test_func (time_t (*func)(struct tm *)) in do_test_func()
39 time_t t = func (&tmg); in do_test_func()
56 time_t t = func (&tmg); in do_test_func()
60 if (sizeof (time_t) < 8) in do_test_func()
76 time_t t = func (&tmg); in do_test_func()
77 TEST_COMPARE (t, (time_t) 0x80000000ull); in do_test_func()
Dtst-difftime.c23 test_difftime_helper (time_t t1, time_t t0, double exp_val) in test_difftime_helper()
33 time_t t = 1383791700; /* Provide reproductible start value. */ in do_test()
41 time_t tov; in do_test()
Dbug-mktime4.c26 time_t time_t_min = -1; in do_test()
36 time_t ymin = time_t_min / 60 / 60 / 24 / 366; in do_test()
42 time_t t = mktime (&tm); in do_test()
58 if (t != (time_t) -1) in do_test()
Dtst-y2039.c30 if (sizeof (time_t) > 4) in do_test()
32 time_t ouch = (time_t) 2187810000LL; in do_test()
/glibc-2.36/nscd/
Dnscd.h68 time_t mtime;
132 time_t wakeup_time;
220 extern time_t start_time;
238 extern time_t restart_time;
240 extern time_t restart_interval;
284 extern time_t prune_cache (struct database_dyn *table, time_t now, int fd);
291 extern time_t readdpwbyname (struct database_dyn *db, struct hashentry *he,
293 extern time_t readdpwbyuid (struct database_dyn *db, struct hashentry *he,
301 extern time_t readdgrbyname (struct database_dyn *db, struct hashentry *he,
303 extern time_t readdgrbygid (struct database_dyn *db, struct hashentry *he,
[all …]
Dnscd-client.h204 (sizeof (time_t) == sizeof (long int) ? LONG_MAX : INT_MAX)
240 static inline time_t
258 static inline time_t
262 time_t ret = datahead_init_common (head, allocsize, recsize, ttl); in datahead_init_pos()
270 static inline time_t
274 time_t ret = datahead_init_common (head, allocsize, recsize, ttl); in datahead_init_neg()
Dhstcache.c91 static time_t
98 time_t t = time (NULL); in cache_addhst()
111 time_t timeout = MAX_TIMEOUT_VALUE; in cache_addhst()
427 static time_t
477 time_t timeout = cache_addhst (db, fd, req, key, hst, uid, he, dh, in addhstbyX()
492 time_t
514 time_t
536 time_t
558 time_t
Dservicescache.c63 static time_t
70 time_t t = time (NULL); in cache_addserv()
83 time_t timeout = MAX_TIMEOUT_VALUE; in cache_addserv()
340 static time_t
378 time_t timeout = cache_addserv (db, fd, req, key, serv, uid, he, dh, errval); in addservbyX()
392 time_t
414 time_t
Dnetgroupcache.c76 time_t *timeoutp, char **key_copy) in do_notfound()
80 time_t timeout; in do_notfound()
112 static time_t
127 time_t timeout; in addgetnetgrentX()
450 static time_t
479 time_t timeout; in addinnetgrX()
609 static time_t
616 time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, in addgetnetgrentX_ignore()
630 time_t
652 time_t
/glibc-2.36/support/
Dtimespec.c65 time_t
68 time_t time_ns; in support_timespec_ns()
70 return time.tv_sec < 0 ? TYPE_MINIMUM(time_t) : TYPE_MAXIMUM(time_t); in support_timespec_ns()
72 return time.tv_nsec < 0 ? TYPE_MINIMUM(time_t) : TYPE_MAXIMUM(time_t); in support_timespec_ns()
86 norm.tv_sec = (time.tv_nsec < 0) ? TYPE_MINIMUM (time_t): TYPE_MAXIMUM (time_t); in support_timespec_normalize()
111 time_t expected_norm, observed_norm; in support_timespec_check_in_range()
Dtimespec-sub.c32 time_t rs = a.tv_sec; in timespec_sub()
33 time_t bs = b.tv_sec; in timespec_sub()
40 time_t bs1; in timespec_sub()
43 else if (- TYPE_SIGNED (time_t) < rs) in timespec_sub()
54 rs = TYPE_MINIMUM (time_t); in timespec_sub()
59 rs = TYPE_MAXIMUM (time_t); in timespec_sub()
Dtimespec-add.c31 time_t rs = a.tv_sec; in timespec_add()
32 time_t bs = b.tv_sec; in timespec_add()
40 time_t bs1; in timespec_add()
53 rs = TYPE_MINIMUM (time_t); in timespec_add()
59 rs = TYPE_MAXIMUM (time_t); in timespec_add()
/glibc-2.36/conform/data/
Dtime.h-data11 element {struct timespec} time_t tv_sec
18 type time_t
33 function double difftime (time_t, time_t)
34 function time_t mktime (struct tm*)
35 function time_t time (time_t*)
37 function {char*} ctime (const time_t*)
38 function {struct tm*} gmtime (const time_t*)
39 function {struct tm*} localtime (const time_t*)
94 function {char*} ctime_r (const time_t*, char*)
98 function {struct tm*} gmtime_r (const time_t*, struct tm*)
[all …]
Dutime.h-data3 # define time_t __time_t
8 element {struct utimbuf} time_t actime
9 element {struct utimbuf} time_t modtime
11 type time_t
/glibc-2.36/sysdeps/unix/sysv/linux/
Dtime.c29 static time_t
30 time_syscall (time_t *t) in time_syscall()
43 time_t
44 time (time_t *t) in time()
70 time_t in libc_hidden_def()
71 __time (time_t *timer) in libc_hidden_def()
Dtst-socket-timestamp-compat.c107 if (sizeof (time_t) > 4 && cmsg->cmsg_type == COMPAT_SO_TIMESTAMP_NEW) in do_test_large_buffer()
113 TEST_COMPARE (found_timestamp, sizeof (time_t) > 4); in do_test_large_buffer()
133 if (sizeof (time_t) > 4 && cmsg->cmsg_type == COMPAT_SO_TIMESTAMPNS_NEW) in do_test_large_buffer()
139 TEST_COMPARE (found_timestamp, sizeof (time_t) > 4); in do_test_large_buffer()
176 if (sizeof (time_t) > 4 && cmsg->cmsg_type == COMPAT_SO_TIMESTAMP_NEW) in do_test_small_buffer()
182 if (sizeof (time_t) > 4) in do_test_small_buffer()
217 if (sizeof (time_t) > 4 && cmsg->cmsg_type == COMPAT_SO_TIMESTAMPNS_NEW) in do_test_small_buffer()
223 if (sizeof (time_t) > 4) in do_test_small_buffer()
241 if (sizeof (time_t) > 4 && __TIMESIZE == 64) in do_test()
/glibc-2.36/sysdeps/unix/sysv/linux/alpha/sys/
Dacct.h32 time_t ac_utime; /* Accounting user time. */
33 time_t ac_stime; /* Accounting system time. */
34 time_t ac_etime; /* Accounting elapsed time. */
35 time_t ac_btime; /* Beginning time. */
/glibc-2.36/include/
Dtime.h136 extern struct tm *__localtime_r (const time_t *__timer,
147 extern struct tm *__gmtime_r (const time_t *__restrict __timer,
315 extern double __difftime (time_t time1, time_t time0);
386 tv.tv_sec = (time_t) tv64.tv_sec; in valid_timeval64_to_timeval()
423 ts.tv_sec = (time_t) ts64.tv_sec; in valid_timespec64_to_timespec()
436 tv.tv_sec = (time_t) ts64.tv_sec; in valid_timespec64_to_timeval()
496 return (struct __timeval32) { (time_t) ts.tv_sec, ts.tv_nsec / 1000 }; in valid_timespec_to_timeval32()
502 return (struct __timeval64) { (time_t) ts.tv_sec, ts.tv_nsec / 1000 }; in valid_timespec_to_timeval64()
514 static inline time_t
/glibc-2.36/conform/data/sys/
Dshm.h-data16 element {struct shmid_ds} time_t shm_atime
17 element {struct shmid_ds} time_t shm_dtime
18 element {struct shmid_ds} time_t shm_ctime
21 type time_t
Dmsg.h-data15 element {struct msqid_ds} time_t msg_stime
16 element {struct msqid_ds} time_t msg_rtime
17 element {struct msqid_ds} time_t msg_ctime
20 type time_t

1234567