/sysdeps/posix/ |
A D | sleep.c | 42 if (sizeof (ts.tv_sec) <= sizeof (seconds)) in __sleep() 46 ts.tv_sec += MIN (seconds, max); in __sleep() 47 seconds -= (unsigned int) ts.tv_sec; in __sleep() 51 ts.tv_sec = (time_t) seconds; in __sleep() 58 return seconds + ts.tv_sec; in __sleep()
|
A D | alarm.c | 35 new.it_interval.tv_sec = 0; in alarm() 37 new.it_value.tv_sec = (long int) seconds; in alarm() 41 retval = old.it_value.tv_sec; in alarm()
|
A D | utimes.c | 34 buf.actime = tvp[0].tv_sec + tvp[0].tv_usec / 1000000; in __utimes() 35 buf.modtime = tvp[1].tv_sec + tvp[1].tv_usec / 1000000; in __utimes()
|
/sysdeps/pthread/ |
A D | posix-timer.h | 119 if (left->tv_sec < right->tv_sec) in timespec_compare() 121 if (left->tv_sec > right->tv_sec) in timespec_compare() 136 sum->tv_sec = left->tv_sec + right->tv_sec; in timespec_add() 141 ++sum->tv_sec; in timespec_add() 150 diff->tv_sec = left->tv_sec - right->tv_sec; in timespec_sub() 155 --diff->tv_sec; in timespec_sub()
|
A D | tst-robust3.c | 14 tmo.tv_sec = tv.tv_sec + 3600; \
|
/sysdeps/mach/htl/ |
A D | pt-timedblock.c | 49 if (now.tv_sec > abstime->tv_sec in __pthread_timedblock() 50 || (now.tv_sec == abstime->tv_sec && now.tv_nsec > abstime->tv_nsec)) in __pthread_timedblock() 53 timeout = (abstime->tv_sec - now.tv_sec) * 1000; in __pthread_timedblock()
|
/sysdeps/unix/sysv/linux/powerpc/bits/ |
A D | struct_stat.h | 69 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 70 # define st_mtime st_mtim.tv_sec 71 # define st_ctime st_ctim.tv_sec 112 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 113 # define st_mtime st_mtim.tv_sec 114 # define st_ctime st_ctim.tv_sec 167 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 168 # define st_mtime st_mtim.tv_sec 169 # define st_ctime st_ctim.tv_sec 208 # define st_mtime st_mtim.tv_sec [all …]
|
/sysdeps/unix/sysv/linux/s390/bits/ |
A D | struct_stat.h | 50 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 51 # define st_mtime st_mtim.tv_sec 52 # define st_ctime st_ctim.tv_sec 106 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 107 # define st_mtime st_mtim.tv_sec 108 # define st_ctime st_ctim.tv_sec 151 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 152 # define st_mtime st_mtim.tv_sec 153 # define st_ctime st_ctim.tv_sec 197 # define st_mtime st_mtim.tv_sec [all …]
|
/sysdeps/unix/sysv/linux/ |
A D | tst-ntp_gettime.c | 50 while (tv_after_ntp.tv_sec != tv_before_ntp.tv_sec); in do_test() 52 TEST_COMPARE (tv_after_ntp.tv_sec, ntv.time.tv_sec); in do_test()
|
A D | adjtime.c | 37 tmp.tv_sec = itv->tv_sec + itv->tv_usec / 1000000L; in __adjtime64() 39 if (tmp.tv_sec > MAX_SEC || tmp.tv_sec < MIN_SEC) in __adjtime64() 41 tntx.offset = tmp.tv_usec + tmp.tv_sec * 1000000L; in __adjtime64() 55 otv->tv_sec = -(-tntx.offset / 1000000); in __adjtime64() 60 otv->tv_sec = tntx.offset / 1000000; in __adjtime64()
|
A D | xstatconv.c | 64 buf->st_atim.tv_sec = kbuf->st_atim.tv_sec; in __xstat_conv() 66 buf->st_mtim.tv_sec = kbuf->st_mtim.tv_sec; in __xstat_conv() 68 buf->st_ctim.tv_sec = kbuf->st_ctim.tv_sec; in __xstat_conv() 134 buf->st_atim.tv_sec = kbuf->st_atim.tv_sec; in __xstat64_conv() 136 buf->st_mtim.tv_sec = kbuf->st_mtim.tv_sec; in __xstat64_conv() 138 buf->st_ctim.tv_sec = kbuf->st_ctim.tv_sec; in __xstat64_conv() 211 buf->st_atim.tv_sec = kbuf->st_atim.tv_sec; in __xstat32_conv() 213 buf->st_mtim.tv_sec = kbuf->st_mtim.tv_sec; in __xstat32_conv() 215 buf->st_ctim.tv_sec = kbuf->st_ctim.tv_sec; in __xstat32_conv()
|
/sysdeps/unix/sysv/linux/microblaze/bits/ |
A D | struct_stat.h | 54 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 55 # define st_mtime st_mtim.tv_sec 56 # define st_ctime st_ctim.tv_sec 102 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 103 # define st_mtime st_mtim.tv_sec 104 # define st_ctime st_ctim.tv_sec 147 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 148 # define st_mtime st_mtim.tv_sec 149 # define st_ctime st_ctim.tv_sec
|
/sysdeps/mach/hurd/ |
A D | getitimer.c | 35 from->tv_sec -= subtract->tv_sec; in subtract_timeval() 38 --from->tv_sec; in subtract_timeval() 68 elapsed.tv_sec = tv.seconds; in __getitimer() 81 if ((val.it_value.tv_sec | val.it_value.tv_usec) != 0) in __getitimer() 93 val.it_value.tv_sec = 0; in __getitimer()
|
A D | setitimer.c | 51 ++tv->tv_sec; in quantize_timeval() 60 from->tv_sec -= subtract->tv_sec; in subtract_timeval() 63 --from->tv_sec; in subtract_timeval() 94 _hurd_itimerval.it_value.tv_sec * 1000 in timer_thread() 190 if ((newval.it_value.tv_sec | newval.it_value.tv_usec) != 0) in setitimer_locked() 245 if ((newval.it_value.tv_sec | newval.it_value.tv_usec) != 0 || old != NULL) in setitimer_locked() 251 now.tv_sec = tv.seconds; in setitimer_locked() 262 remaining.tv_sec = 0; in setitimer_locked() 278 if ((newval.it_value.tv_sec | newval.it_value.tv_usec) == 0) in setitimer_locked() 296 else if (remaining.tv_sec != newval.it_value.tv_sec in setitimer_locked()
|
A D | utime-helper.c | 33 atime->tv_sec = 0; in utime_ts_from_tval() 35 mtime->tv_sec = 0; in utime_ts_from_tval() 56 atime->seconds = tvp[0].tv_sec; in utime_tvalue_from_tval() 58 mtime->seconds = tvp[1].tv_sec; in utime_tvalue_from_tval() 95 atime->tv_sec = 0; in utime_ts_from_tspec() 97 mtime->tv_sec = 0; in utime_ts_from_tspec()
|
/sysdeps/unix/sysv/linux/ia64/bits/ |
A D | struct_stat.h | 47 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 48 # define st_mtime st_mtim.tv_sec 49 # define st_ctime st_ctim.tv_sec 86 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 87 # define st_mtime st_mtim.tv_sec 88 # define st_ctime st_ctim.tv_sec
|
/sysdeps/unix/sysv/linux/alpha/bits/ |
A D | struct_stat.h | 59 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 60 # define st_mtime st_mtim.tv_sec 61 # define st_ctime st_ctim.tv_sec 98 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 99 # define st_mtime st_mtim.tv_sec 100 # define st_ctime st_ctim.tv_sec
|
/sysdeps/unix/sysv/linux/sparc/bits/ |
A D | struct_stat.h | 69 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 70 # define st_mtime st_mtim.tv_sec 71 # define st_ctime st_ctim.tv_sec 116 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 117 # define st_mtime st_mtim.tv_sec 118 # define st_ctime st_ctim.tv_sec
|
/sysdeps/unix/bsd/ |
A D | ualarm.c | 31 timer.it_value.tv_sec = 0; in ualarm() 33 timer.it_interval.tv_sec = 0; in ualarm() 39 return (otimer.it_value.tv_sec * 1000000) + otimer.it_value.tv_usec; in ualarm()
|
/sysdeps/unix/sysv/linux/mips/ |
A D | xstatconv.c | 65 buf->st_atim.tv_sec = kbuf->st_atime_sec; in __xstat_conv() 67 buf->st_mtim.tv_sec = kbuf->st_mtime_sec; in __xstat_conv() 69 buf->st_ctim.tv_sec = kbuf->st_ctime_sec; in __xstat_conv() 117 buf->st_atim.tv_sec = kbuf->st_atime_sec; in __xstat64_conv() 119 buf->st_mtim.tv_sec = kbuf->st_mtime_sec; in __xstat64_conv() 121 buf->st_ctim.tv_sec = kbuf->st_ctime_sec; in __xstat64_conv() 174 buf->st_atim.tv_sec = kbuf->st_atim.tv_sec; in __xstat32_conv() 176 buf->st_mtim.tv_sec = kbuf->st_mtim.tv_sec; in __xstat32_conv() 178 buf->st_ctim.tv_sec = kbuf->st_ctim.tv_sec; in __xstat32_conv()
|
/sysdeps/mach/ |
A D | clock_nanosleep.c | 35 = req->tv_sec * 1000 in nanosleep_call() 84 assert (sizeof (sec) >= sizeof (now.tv_sec)); in __clock_nanosleep() 92 sec = req->tv_sec - now.tv_sec - (nsec < 0); in __clock_nanosleep() 97 now.tv_sec = sec; in __clock_nanosleep()
|
/sysdeps/unix/sysv/linux/mips/mips64/ |
A D | kstat_cp.h | 41 st->st_atim.tv_sec = kst->st_atime_sec; in __cp_kstat_stat() 43 st->st_mtim.tv_sec = kst->st_mtime_sec; in __cp_kstat_stat() 45 st->st_ctim.tv_sec = kst->st_ctime_sec; in __cp_kstat_stat() 67 st->st_atim.tv_sec = kst->st_atime_sec; in __cp_kstat_stat64_t64() 69 st->st_mtim.tv_sec = kst->st_mtime_sec; in __cp_kstat_stat64_t64() 71 st->st_ctim.tv_sec = kst->st_ctime_sec; in __cp_kstat_stat64_t64()
|
/sysdeps/unix/sysv/linux/sparc/sparc64/ |
A D | xstatconv.c | 54 buf->st_atim.tv_sec = kbuf->st_atime_sec; in __xstat_conv() 56 buf->st_mtim.tv_sec = kbuf->st_mtime_sec; in __xstat_conv() 58 buf->st_ctim.tv_sec = kbuf->st_ctime_sec; in __xstat_conv() 104 buf->st_atim.tv_sec = kbuf->st_atime_sec; in __xstat32_conv() 106 buf->st_mtim.tv_sec = kbuf->st_mtime_sec; in __xstat32_conv() 108 buf->st_ctim.tv_sec = kbuf->st_ctime_sec; in __xstat32_conv()
|
/sysdeps/unix/sysv/linux/bits/ |
A D | struct_stat_time64_helper.h | 43 # define st_atime st_atim.tv_sec 44 # define st_mtime st_mtim.tv_sec 45 # define st_ctime st_ctim.tv_sec
|
/sysdeps/unix/sysv/linux/mips/bits/ |
A D | struct_stat.h | 66 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 67 # define st_mtime st_mtim.tv_sec 68 # define st_ctime st_ctim.tv_sec 164 # define st_atime st_atim.tv_sec /* Backward compatibility. */ 165 # define st_mtime st_mtim.tv_sec 166 # define st_ctime st_ctim.tv_sec
|