Home
last modified time | relevance | path

Searched refs:timespec (Results 1 – 25 of 788) sorted by relevance

12345678910>>...32

/freebsd-14.2/contrib/ntp/include/
H A Dtimespecops.h63 extern struct timespec normalize_tspec(struct timespec x);
68 struct timespec a, in add_tspec()
69 struct timespec b in add_tspec()
72 struct timespec x; in add_tspec()
100 struct timespec b in sub_tspec()
130 struct timespec a in neg_tspec()
142 struct timespec abs_tspec(struct timespec a);
148 extern int cmp_tspec(struct timespec a, struct timespec b);
157 struct timespec b in cmp_tspec_denorm()
175 struct timespec a in test_tspec_denorm()
[all …]
/freebsd-14.2/contrib/netbsd-tests/lib/libc/gen/
H A Dt_sleep.c81 int do_nanosleep(struct timespec *, struct timespec *);
82 int do_select(struct timespec *, struct timespec *);
84 int do_poll(struct timespec *, struct timespec *);
86 int do_sleep(struct timespec *, struct timespec *);
87 int do_kevent(struct timespec *, struct timespec *);
98 do_nanosleep(struct timespec *delay, struct timespec *remain) in do_nanosleep()
110 do_select(struct timespec *delay, struct timespec *remain) in do_select()
125 do_poll(struct timespec *delay, struct timespec *remain) in do_poll()
140 do_sleep(struct timespec *delay, struct timespec *remain) in do_sleep()
152 do_kevent(struct timespec *delay, struct timespec *remain) in do_kevent()
[all …]
/freebsd-14.2/sys/fs/smbfs/
H A Dsmbfs_subr.h53 struct timespec;
62 struct timespec fa_atime;
63 struct timespec fa_ctime;
64 struct timespec fa_mtime;
137 struct timespec *mtime, struct smb_cred *scred);
139 struct timespec *atime, int attr, struct smb_cred *scred);
141 struct timespec *mtime, struct timespec *atime, struct smb_cred *scred);
143 int smbfs_smb_setftime(struct smbnode *np, struct timespec *mtime,
144 struct timespec *atime, struct smb_cred *scred);
146 struct timespec *mtime, struct timespec *atime, struct smb_cred *scred);
[all …]
/freebsd-14.2/lib/libc/include/isc/
H A Deventlib.h62 struct timespec, struct timespec));
169 struct timespec evAddTime __P((struct timespec, struct timespec));
170 struct timespec evSubTime __P((struct timespec, struct timespec));
171 struct timespec evNowTime __P((void));
172 struct timespec evUTCTime __P((void));
173 struct timespec evLastEventTime __P((evContext));
175 struct timeval evTimeVal __P((struct timespec));
176 int evCmpTime __P((struct timespec, struct timespec));
178 struct timespec, evTimerID *));
183 struct timespec, struct timespec));
[all …]
/freebsd-14.2/lib/libc/isc/
H A Dev_timers.c73 struct timespec
75 struct timespec x; in evConsTime()
82 struct timespec
83 evAddTime(struct timespec addend1, struct timespec addend2) { in evAddTime()
95 struct timespec
96 evSubTime(struct timespec minuend, struct timespec subtrahend) { in evSubTime()
110 evCmpTime(struct timespec a, struct timespec b) { in evCmpTime()
118 struct timespec
137 struct timespec
151 struct timespec
[all …]
/freebsd-14.2/contrib/ntp/libntp/
H A Dtimespecops.c43 struct timespec
45 struct timespec x in normalize_tspec()
87 struct timespec
89 struct timespec a in abs_tspec()
92 struct timespec c; in abs_tspec()
114 struct timespec b in cmp_tspec()
133 struct timespec a in test_tspec()
152 struct timespec x in tspec_intv_to_lfp()
166 struct timespec
191 struct timespec
[all …]
/freebsd-14.2/sys/sys/
H A Dstat.h113 struct timespec st_atim; /* time of last access */
114 struct timespec st_mtim; /* time of last data modification */
132 struct timespec st_atim; /* time of last access */
141 struct timespec st_birthtim; /* time of file creation */
150 unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
151 unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
172 struct timespec st_atim; /* time of last access */
184 struct timespec st_birthtim; /* time of file creation */
202 struct timespec st_atim; /* time of last access */
210 struct timespec st_birthtim; /* time of file creation */
[all …]
H A Dtimeffc.h155 void ffclock_reset_clock(struct timespec *ts);
207 void ffclock_nanotime(struct timespec *tsp);
211 void ffclock_getnanotime(struct timespec *tsp);
215 void ffclock_nanouptime(struct timespec *tsp);
219 void ffclock_getnanouptime(struct timespec *tsp);
237 void fbclock_nanotime(struct timespec *tsp);
241 void fbclock_getnanotime(struct timespec *tsp);
245 void fbclock_nanouptime(struct timespec *tsp);
249 void fbclock_getnanouptime(struct timespec *tsp);
269 nanotime_fromclock(struct timespec *tsp, int whichclock) in nanotime_fromclock()
[all …]
H A Dclock.h83 int clock_ct_to_ts(const struct clocktime *, struct timespec *);
84 void clock_ts_to_ct(const struct timespec *, struct clocktime *);
120 int clock_bcd_to_ts(const struct bcd_clocktime *, struct timespec *, bool ampm);
121 void clock_ts_to_bcd(const struct timespec *, struct bcd_clocktime *, bool ampm);
172 void timespec2fattime(const struct timespec *tsp, int utc, u_int16_t *ddp,
175 struct timespec *tsp);
184 void clock_print_ts(const struct timespec *ts, int nsdig);
196 void clock_dbgprint_ts(device_t dev, int rw, const struct timespec *ts);
/freebsd-14.2/tools/tools/netmap/
H A Dctrs.h43 timespec_ge(const struct timespec *a, const struct timespec *b) in timespec_ge()
55 static __inline struct timespec
58 struct timespec ts = { in timeval2spec()
66 timespec2val(const struct timespec *a) in timespec2val()
76 static __inline struct timespec
77 timespec_add(struct timespec a, struct timespec b) in timespec_add()
79 struct timespec ret = { a.tv_sec + b.tv_sec, a.tv_nsec + b.tv_nsec }; in timespec_add()
87 static __inline struct timespec
88 timespec_sub(struct timespec a, struct timespec b) in timespec_sub()
90 struct timespec ret = { a.tv_sec - b.tv_sec, a.tv_nsec - b.tv_nsec }; in timespec_sub()
/freebsd-14.2/sys/contrib/ck/src/
H A Dck_ec.c47 const struct timespec *deadline) in ck_ec32_wait_slow()
66 const struct timespec *deadline) in ck_ec64_wait_slow()
76 const struct timespec *timeout) in ck_ec_deadline_impl()
78 struct timespec now; in ck_ec_deadline_impl()
102 static struct timespec
132 struct timespec *deadline), in exponential_backoff()
135 struct timespec begin; in exponential_backoff()
136 struct timespec stop_backoff; in exponential_backoff()
150 struct timespec now; in exponential_backoff()
388 struct timespec *deadline), in ck_ec32_wait_pred_slow()
[all …]
H A Dck_ec_timeutil.h37 CK_CC_UNUSED static struct timespec timespec_add_ns(const struct timespec ts, in timespec_add_ns()
40 struct timespec ret = { in timespec_add_ns()
78 CK_CC_UNUSED static struct timespec timespec_add(const struct timespec ts, in timespec_add()
79 const struct timespec inc) in timespec_add()
82 struct timespec ret = { in timespec_add()
118 CK_CC_UNUSED static int timespec_cmp(const struct timespec x, in timespec_cmp()
119 const struct timespec y) in timespec_cmp()
137 CK_CC_UNUSED static bool check_deadline(struct timespec *now, in check_deadline()
139 const struct timespec deadline) in check_deadline()
/freebsd-14.2/sys/contrib/ck/include/
H A Dck_ec.h282 struct timespec now; /* Time now. */
528 const struct timespec *timeout);
540 const struct timespec *deadline);
548 const struct timespec *deadline);
574 struct timespec *deadline),
585 struct timespec *deadline),
753 const struct timespec *timeout);
793 struct timespec *deadline), in ck_ec32_wait_pred()
795 const struct timespec *deadline) in ck_ec32_wait_pred()
933 struct timespec *deadline), in ck_ec64_wait_pred()
[all …]
/freebsd-14.2/sys/compat/linuxkpi/common/include/linux/
H A Dtime.h38 #define timespec64 timespec
76 static inline struct timespec
77 timespec_sub(struct timespec lhs, struct timespec rhs) in timespec_sub()
79 struct timespec ts; in timespec_sub()
87 set_normalized_timespec(struct timespec *ts, time_t sec, int64_t nsec) in set_normalized_timespec()
95 timespec_to_ns(const struct timespec *ts) in timespec_to_ns()
100 static inline struct timespec
103 struct timespec ts; in ns_to_timespec()
125 timespec_valid(const struct timespec *ts) in timespec_valid()
H A Dktime.h173 timespec_to_ktime(struct timespec ts) in timespec_to_ktime()
203 struct timespec ts; in ktime_get_ns()
213 struct timespec ts; in ktime_get()
222 struct timespec ts; in ktime_get_boottime()
238 struct timespec ts; in ktime_get_real()
247 struct timespec ts; in ktime_get_real_seconds()
256 struct timespec ts; in ktime_get_raw()
265 struct timespec ts; in ktime_get_raw_ns()
274 struct timespec ts; in ktime_get_raw_fast_ns()
/freebsd-14.2/crypto/openssh/
H A Dmisc.h86 void ms_to_timespec(struct timespec *, int);
87 void monotime_ts(struct timespec *);
215 struct timespec;
216 void ptimeout_init(struct timespec *pt);
217 void ptimeout_deadline_sec(struct timespec *pt, long sec);
218 void ptimeout_deadline_ms(struct timespec *pt, long ms);
219 void ptimeout_deadline_monotime_tsp(struct timespec *pt, struct timespec *when);
220 void ptimeout_deadline_monotime(struct timespec *pt, time_t when);
221 int ptimeout_get_ms(struct timespec *pt);
222 struct timespec *ptimeout_get_tsp(struct timespec *pt);
[all …]
/freebsd-14.2/include/
H A Dtime.h146 int clock_getres(clockid_t, struct timespec *);
147 int clock_gettime(clockid_t, struct timespec *);
148 int clock_settime(clockid_t, const struct timespec *);
149 int nanosleep(const struct timespec *, struct timespec *);
154 int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *);
187 int timespec_get(struct timespec *ts, int base);
192 int timespec_getres(struct timespec *, int);
/freebsd-14.2/sys/compat/linux/
H A Dlinux_time.h111 struct timespec *);
112 int linux_to_native_timespec(struct timespec *,
114 int linux_put_timespec(struct timespec *,
116 int linux_get_timespec(struct timespec *,
120 struct timespec *);
121 int linux_to_native_timespec64(struct timespec *,
123 int linux_put_timespec64(struct timespec *,
125 int linux_get_timespec64(struct timespec *,
H A Dlinux_time.c105 struct timespec *);
107 struct timespec *);
109 struct timespec *);
111 l_int, struct timespec *, struct timespec *);
461 struct timespec tp; in linux_clock_gettime()
480 struct timespec tp; in linux_clock_gettime64()
523 struct timespec ts; in linux_clock_settime()
538 struct timespec ts; in linux_clock_settime64()
649 struct timespec ts; in linux_clock_getres()
667 struct timespec ts; in linux_clock_getres_time64()
[all …]
/freebsd-14.2/tools/regression/sockets/unix_cmsg/
H A Duc_check_time.c34 static const struct timespec max_diff_ts = {.tv_sec = 1, .tv_nsec = 0};
39 struct timespec bt; in uc_check_bintime()
60 uc_check_timespec_real(const struct timespec *bt) in uc_check_timespec_real()
62 struct timespec ct; in uc_check_timespec_real()
74 uc_check_timespec_mono(const struct timespec *bt) in uc_check_timespec_mono()
76 struct timespec ct; in uc_check_timespec_mono()
/freebsd-14.2/tests/sys/fifo/
H A Dfifo_kqueue.c68 &(struct timespec) { 0, 0 }) == 1); in ATF_TC_BODY()
86 &(struct timespec) { 0, 0 }) == 0); in ATF_TC_BODY()
95 &(struct timespec) { 0, 0 }) == 0); in ATF_TC_BODY()
102 &(struct timespec) { 0, 0 }) == 1); in ATF_TC_BODY()
118 &(struct timespec) { 0, 0 }) == 1); in ATF_TC_BODY()
169 &(struct timespec) { 0, 0 }) == 1); in ATF_TC_BODY()
173 &(struct timespec) { 0, 0 }) == 0); in ATF_TC_BODY()
197 &(struct timespec) { 0, 0 }) == 0); in ATF_TC_BODY()
213 &(struct timespec) { 0, 0 }) == 0); in ATF_TC_BODY()
256 &(struct timespec){ 0, 0 }) == 1); in ATF_TC_BODY()
[all …]
/freebsd-14.2/lib/libc/include/
H A Dlibc_private.h329 struct timespec;
337 const struct timespec *);
340 int __sys_clock_gettime(__clockid_t, struct timespec *ts);
342 const struct timespec *, struct timespec *);
358 int, const struct timespec *);
362 int __sys_nanosleep(const struct timespec *, struct timespec *);
367 struct fd_set *, const struct timespec *,
371 int __sys_ppoll(struct pollfd *, unsigned, const struct timespec *,
393 const struct timespec *);
421 int __sys_futimens(int fd, const struct timespec *times) __hidden;
[all …]
/freebsd-14.2/usr.sbin/rtadvd/
H A Dtimer.h39 struct timespec rat_tm;
42 void (*rat_update)(void *, struct timespec *);
49 void (*)(void *, struct timespec *), void *, void *);
50 void rtadvd_set_timer(struct timespec *,
53 struct timespec *rtadvd_check_timer(void);
H A Dtimer.c56 static struct timespec tm_limit;
57 static struct timespec tm_max;
108 void (*update)(void *, struct timespec *), in rtadvd_add_timer() argument
155 struct timespec *
158 static struct timespec returnval; in rtadvd_check_timer()
159 struct timespec now; in rtadvd_check_timer()
187 rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *rat) in rtadvd_set_timer()
189 struct timespec now; in rtadvd_set_timer()
/freebsd-14.2/tests/sys/kqueue/
H A Dkqueue_peek_signal.c80 rv = kevent(kq, NULL, 0, &kev, 1, &(struct timespec) { 0, 0 }); in ATF_TC_BODY()
84 rv = kevent(kq, NULL, 0, &kev, 1, &(struct timespec) { 0, 0 }); in ATF_TC_BODY()
87 rv = kevent(skq, NULL, 0, &kev, 1, &(struct timespec) { 0, 0 }); in ATF_TC_BODY()
89 rv = kevent(skq, NULL, 0, &kev, 1, &(struct timespec) { 0, 0 }); in ATF_TC_BODY()
93 rv = sigtimedwait(&set, &siginfo, &(struct timespec) { 0, 0 }); in ATF_TC_BODY()
96 rv = sigtimedwait(&set, &siginfo, &(struct timespec) { 0, 0 }); in ATF_TC_BODY()

12345678910>>...32