/illumos-gate/usr/src/uts/common/sys/ |
H A D | timer.h | 106 int (*clk_clock_settime)(timespec_t *); 107 int (*clk_clock_gettime)(timespec_t *); 108 int (*clk_clock_getres)(timespec_t *); 125 extern clock_t timespectohz(timespec_t *, timespec_t); 126 extern int64_t timespectohz64(timespec_t *); 127 extern int itimerspecfix(timespec_t *); 128 extern void timespecadd(timespec_t *, timespec_t *); 129 extern void timespecsub(timespec_t *, timespec_t *); 130 extern void timespecfix(timespec_t *);
|
H A D | lwp_timer_impl.h | 42 timespec_t *lwpt_tsp; 43 timespec_t lwpt_rqtime; 51 extern int lwp_timer_copyin(lwp_timer_t *, timespec_t *);
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | mntdata.h | 41 timespec_t mnte_birth; 42 timespec_t mnte_death; 43 timespec_t mnte_vfs_ctime; 53 timespec_t mnts_time; /* Time of this snapshot. */ 54 timespec_t mnts_last_mtime; /* mnttab modification time. */ 91 timespec_t mnt_mtime; /* mtime at last normal snapshot */ 92 timespec_t mnt_hidden_mtime; /* mtime at last hidden snapshot */
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | utimesys.c | 40 futimens(int fd, const timespec_t times[2]) in futimens() 46 utimensat(int fd, const char *path, const timespec_t times[2], int flag) in utimensat() 56 timespec_t ts[2]; in utime() 57 timespec_t *tsp; in utime() 78 timespec_t ts[2]; in utimes_impl() 79 timespec_t *tsp; in utimes_impl() 113 timespec_t ts[2]; in futimesat() 114 timespec_t *tsp; in futimesat()
|
H A D | lwp_cond.c | 50 _lwp_cond_reltimedwait(cond_t *cv, mutex_t *mp, timespec_t *relts) in _lwp_cond_reltimedwait() 66 _lwp_cond_timedwait(cond_t *cv, mutex_t *mp, timespec_t *absts) in _lwp_cond_timedwait() 69 const timespec_t *, timespec_t *); in _lwp_cond_timedwait() 70 timespec_t tslocal; in _lwp_cond_timedwait()
|
H A D | time_util.c | 39 hrt2ts(hrtime_t hrt, timespec_t *tsp) in hrt2ts() 74 abstime_to_reltime(clockid_t clock_id, const timespec_t *abstime, in abstime_to_reltime() 75 timespec_t *reltime) in abstime_to_reltime() 77 extern int __clock_gettime(clockid_t, timespec_t *); in abstime_to_reltime() 78 timespec_t now; in abstime_to_reltime()
|
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | utimes.c | 33 timespec_t testtimes[] = { 62 compare_times(struct stat *st, bool trunc, timespec_t *atim, timespec_t *mtim, in compare_times() 90 compare_filetime(char *path, bool trunc, timespec_t *atim, timespec_t *mtim, in compare_filetime() 102 compare_linktime(char *path, bool trunc, timespec_t *atim, timespec_t *mtim, in compare_linktime() 114 reset(char *path, timespec_t *atim, timespec_t *mtim) in reset() 126 reset_link(char *lpath, timespec_t *atim, timespec_t *mtim) in reset_link() 138 runtest(enum ttype fn, char *dir, timespec_t *atim, timespec_t *mtim) in runtest() 473 runtests(char *dir, timespec_t *atim, timespec_t *mtim) in runtests()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | clock_realtime.c | 40 clock_realtime_settime(timespec_t *ts) in clock_realtime_settime() 55 clock_realtime_gettime(timespec_t *ts) in clock_realtime_gettime() 63 clock_realtime_getres(timespec_t *ts) in clock_realtime_getres() 77 timespec_t now, interval2nth; in clock_realtime_fire() 78 timespec_t *val, *interval; in clock_realtime_fire() 150 timespec_t now; in clock_realtime_fire_first() 151 timespec_t *val = &it->it_itime.it_value; in clock_realtime_fire_first() 188 timespec_t now; in clock_realtime_timer_settime() 250 timespec_t now; in clock_realtime_timer_gettime()
|
H A D | clock_thread.c | 55 clock_thread_settime(timespec_t *ts) in clock_thread_settime() 61 clock_thread_usr_gettime(timespec_t *ts) in clock_thread_usr_gettime() 75 clock_thread_usrsys_gettime(timespec_t *ts) in clock_thread_usrsys_gettime() 119 clock_thread_getres(timespec_t *ts) in clock_thread_getres()
|
H A D | timers.c | 758 itimerspecfix(timespec_t *tv) in itimerspecfix() 846 timespecadd(timespec_t *t1, timespec_t *t2) in timespecadd() 854 timespecsub(timespec_t *t1, timespec_t *t2) in timespecsub() 862 timespecfix(timespec_t *t1) in timespecfix() 882 timespec_t ts, now; in hzto() 896 timespectohz(timespec_t *tv, timespec_t now) in timespectohz() 942 timespectohz64(timespec_t *tv) in timespectohz64() 1309 nanosleep(timespec_t *rqtp, timespec_t *rmtp) in nanosleep() 1311 timespec_t rqtime; in nanosleep() 1312 timespec_t rmtime; in nanosleep() [all …]
|
H A D | clock_process.c | 42 clock_process_settime(timespec_t *ts) in clock_process_settime() 48 clock_process_gettime(timespec_t *ts) in clock_process_gettime() 72 clock_process_getres(timespec_t *ts) in clock_process_getres()
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | lwp_timer.c | 58 timespec_t now, delta; in lwp_timer_timeout() 95 lwp_timer_copyin(lwp_timer_t *lwptp, timespec_t *tsp) in lwp_timer_copyin() 97 timespec_t now; in lwp_timer_copyin() 105 if (copyin(tsp, &lwptp->lwpt_rqtime, sizeof (timespec_t))) { in lwp_timer_copyin() 148 timespec_t now, delta; in lwp_timer_enqueue() 198 timespec_t rmtime; in lwp_timer_copyout() 199 timespec_t now; in lwp_timer_copyout() 215 if (copyout(&rmtime, lwptp->lwpt_tsp, sizeof (timespec_t))) in lwp_timer_copyout()
|
H A D | utime.c | 117 get_timespec_vattr(timespec_t *tsptr, struct vattr *vattr, int *flags) in get_timespec_vattr() 119 timespec_t ts[2]; in get_timespec_vattr() 120 timespec_t now; in get_timespec_vattr() 172 futimens(int fd, timespec_t *tsptr) in futimens() 185 utimensat(int fd, char *fname, timespec_t *tsptr, int flag) in utimensat() 204 return (futimens((int)arg1, (timespec_t *)arg2)); in utimesys() 207 (timespec_t *)arg3, (int)arg4)); in utimesys()
|
H A D | sigtimedwait.c | 93 sigtimedwait(sigset_t *setp, siginfo_t *siginfop, timespec_t *timeoutp) in sigtimedwait() 100 timespec_t sig_timeout; in sigtimedwait() 101 timespec_t *rqtp = NULL; in sigtimedwait() 109 timespec_t now; in sigtimedwait()
|
H A D | lwpsys.c | 451 lwp_park(timespec_t *timeoutp, id_t lwpid) in lwp_park() 453 timespec_t rqtime; in lwp_park() 454 timespec_t rmtime; in lwp_park() 455 timespec_t now; in lwp_park() 456 timespec_t *rqtp = NULL; in lwp_park() 469 if (copyin(timeoutp, &rqtime, sizeof (timespec_t))) { in lwp_park() 599 error = lwp_park((timespec_t *)arg1, (id_t)arg2); in syslwp_park() 630 error = lwp_park((timespec_t *)arg1, (id_t)arg2); in syslwp_park()
|
/illumos-gate/usr/src/lib/libc/port/rt/ |
H A D | clock_timer.c | 38 extern int __clock_getres(clockid_t, timespec_t *); 39 extern int __clock_gettime(clockid_t, timespec_t *); 40 extern int __clock_settime(clockid_t, const timespec_t *); 64 clock_getres(clockid_t clock_id, timespec_t *res) in clock_getres() 70 clock_gettime(clockid_t clock_id, timespec_t *tp) in clock_gettime() 76 clock_settime(clockid_t clock_id, const timespec_t *tp) in clock_settime()
|
/illumos-gate/usr/src/head/ |
H A D | synch.h | 94 int _lwp_cond_timedwait(lwp_cond_t *, lwp_mutex_t *, timespec_t *); 95 int _lwp_cond_reltimedwait(lwp_cond_t *, lwp_mutex_t *, timespec_t *); 105 int cond_timedwait(cond_t *, mutex_t *, const timespec_t *); 106 int cond_reltimedwait(cond_t *, mutex_t *, const timespec_t *); 125 int sema_timedwait(sema_t *, const timespec_t *); 126 int sema_reltimedwait(sema_t *, const timespec_t *);
|
/illumos-gate/usr/src/lib/commpage/common/ |
H A D | cp_main.c | 125 __cp_clock_gettime_realtime(comm_page_t *cp, timespec_t *tsp) in __cp_clock_gettime_realtime() 128 timespec_t now; in __cp_clock_gettime_realtime() 180 extern void hrt2ts(hrtime_t, timespec_t *); 183 __cp_clock_gettime_monotonic(comm_page_t *cp, timespec_t *tsp) in __cp_clock_gettime_monotonic()
|
H A D | cp_defs.h | 30 extern int __cp_clock_gettime_realtime(comm_page_t *, timespec_t *); 31 extern int __cp_clock_gettime_monotonic(comm_page_t *, timespec_t *);
|
/illumos-gate/usr/src/cmd/touch/ |
H A D | touch.c | 57 static void parse_datetime(char *, timespec_t *); 58 static void parse_time(char *, timespec_t *); 59 static void parse_timespec(char *, timespec_t *); 81 timespec_t times[2]; in main() 82 timespec_t *tsp; in main() 268 parse_datetime(char *t, timespec_t *ts) in parse_datetime() 388 parse_time(char *t, timespec_t *ts) in parse_time() 449 parse_timespec(char *t, timespec_t *ts) in parse_timespec()
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | thr_uberdata.h | 1273 extern int __nanosleep(const timespec_t *, timespec_t *); 1328 extern int sema_relclockwait(sema_t *, clockid_t, const timespec_t *); 1329 extern int sema_clockwait(sema_t *, clockid_t, const timespec_t *); 1425 extern int sig_cond_reltimedwait(cond_t *, mutex_t *, const timespec_t *); 1477 extern int __clock_gettime(clockid_t, timespec_t *); 1478 extern void abstime_to_reltime(clockid_t, const timespec_t *, timespec_t *); 1479 extern void hrt2ts(hrtime_t, timespec_t *); 1495 extern int mutex_lock_internal(mutex_t *, timespec_t *, int); 1501 const timespec_t *); 1502 extern int __cond_reltimedwait(cond_t *, mutex_t *, const timespec_t *); [all …]
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | sema.c | 81 sema_wait_impl(sema_t *sp, timespec_t *tsp) in sema_wait_impl() 212 sema_relclockwait(sema_t *sp, clockid_t clock, const timespec_t *reltime) in sema_relclockwait() 214 timespec_t tslocal = *reltime; in sema_relclockwait() 228 sema_clockwait(sema_t *sp, clockid_t clock, const timespec_t *abstime) in sema_clockwait() 230 timespec_t tslocal; in sema_clockwait() 245 sema_reltimedwait(sema_t *sp, const timespec_t *reltime) in sema_reltimedwait() 251 sema_timedwait(sema_t *sp, const timespec_t *abstime) in sema_timedwait()
|
H A D | scalls.c | 595 nanosleep(const timespec_t *rqtp, timespec_t *rmtp) in nanosleep() 611 const timespec_t *rqtp, timespec_t *rmtp) in clock_nanosleep() 613 timespec_t reltime; in clock_nanosleep() 689 timespec_t ts; in sleep() 690 timespec_t tsr; in sleep() 705 timespec_t ts; in usleep() 1024 _pollsys(struct pollfd *fds, nfds_t nfd, const timespec_t *timeout, in _pollsys() 1027 extern int __pollsys(struct pollfd *, nfds_t, const timespec_t *, in _pollsys() 1038 sigtimedwait(const sigset_t *set, siginfo_t *infop, const timespec_t *timeout) in sigtimedwait() 1041 const timespec_t *); in sigtimedwait()
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_deleted.c | 178 timespec_t ts; in s10_poll() 179 timespec_t *tsp; in s10_poll() 339 timespec_t ts[2]; in s10_utime() 340 timespec_t *tsp; in s10_utime() 362 timespec_t ts[2]; in s10_utimes() 363 timespec_t *tsp; in s10_utimes() 386 timespec_t ts[2]; in s10_futimesat() 387 timespec_t *tsp; in s10_futimesat()
|
/illumos-gate/usr/src/lib/libc/i386/sys/ |
H A D | __clock_gettime.c | 21 extern int __clock_gettime_sys(clockid_t, timespec_t *); 24 __clock_gettime(clockid_t clock_id, timespec_t *tp) in __clock_gettime()
|