Home
last modified time | relevance | path

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

12345678910>>...32

/freebsd/contrib/ntp/include/
H A Dtimespecops.h63 extern struct timespec normalize_tspec(struct timespec x);
66 static inline struct timespec
68 struct timespec a, in add_tspec()
69 struct timespec b in add_tspec()
72 struct timespec x; in add_tspec()
82 static inline struct timespec
84 struct timespec a, in add_tspec_ns()
88 struct timespec x; in add_tspec_ns()
97 static inline struct timespec
99 struct timespec a, in sub_tspec()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/gen/
H A Dt_sleep.c80 int sleeptest(int (*)(struct timespec *, struct timespec *), bool, bool);
81 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()
[all …]
/freebsd/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);
138 int smbfs_smb_setptime2(struct smbnode *np, struct timespec *mtime,
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);
[all …]
/freebsd/lib/libc/include/isc/
H A Deventlib.h62 struct timespec, struct timespec));
168 struct timespec evConsTime __P((time_t sec, long nsec));
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));
174 struct timespec evTimeSpec __P((struct timeval));
175 struct timeval evTimeVal __P((struct timespec));
176 int evCmpTime __P((struct timespec, struct timespec));
[all …]
/freebsd/lib/libc/isc/
H A Dev_timers.c55 static void idle_timeout(evContext, void *, struct timespec, struct timespec);
62 struct timespec lastTouched;
63 struct timespec max_idle;
70 struct timespec
72 struct timespec x; in evConsTime()
79 struct timespec
80 evAddTime(struct timespec addend1, struct timespec addend2) { in evAddTime()
81 struct timespec x; in evAddTime()
92 struct timespec
93 evSubTime(struct timespec minuend, struct timespec subtrahend) { in evSubTime()
[all …]
/freebsd/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()
113 struct timespec a, in cmp_tspec()
114 struct timespec b in cmp_tspec()
133 struct timespec a in test_tspec()
152 struct timespec x in tspec_intv_to_lfp()
155 struct timespec v; in tspec_intv_to_lfp()
[all …]
/freebsd/sys/sys/
H A Dstat.h111 struct timespec st_atim; /* time of last access */
112 struct timespec st_mtim; /* time of last data modification */
113 struct timespec st_ctim; /* time of last file status change */
130 struct timespec st_atim; /* time of last access */
131 struct timespec st_mtim; /* time of last data modification */
132 struct timespec st_ctim; /* time of last file status change */
139 struct timespec st_birthtim; /* time of file creation */
148 unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
149 unsigned int :(8 / 2) * (16 - (int)sizeof(struct timespec));
170 struct timespec st_ati
[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);
227 void ffclock_nanodifftime(ffcounter ffdelta, 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);
[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/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/sys/contrib/ck/src/
H A Dck_ec.c30 static const struct timespec final_wait_time = {
47 const struct timespec *deadline) in ck_ec32_wait_slow()
66 const struct timespec *deadline) in ck_ec64_wait_slow()
74 ck_ec_deadline_impl(struct timespec *new_deadline, in ck_ec_deadline_impl()
76 const struct timespec *timeout) in ck_ec_deadline_impl()
78 struct timespec now; in ck_ec_deadline_impl()
102 static struct timespec
103 canonical_deadline(const struct timespec *deadline_ptr) in canonical_deadline()
107 return (struct timespec) { .tv_sec = TIME_MAX }; in canonical_deadline()
129 const struct timespec *partial_deadline), in exponential_backoff()
[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/sys/contrib/ck/include/
H A Dck_ec.h281 struct timespec start; /* Time when we entered ck_ec_wait. */
282 struct timespec now; /* Time now. */
298 int (*gettime)(const struct ck_ec_ops *, struct timespec *out);
306 uint32_t expected, const struct timespec *deadline);
317 uint64_t expected, const struct timespec *deadline);
526 static int ck_ec_deadline(struct timespec *new_deadline,
528 const struct timespec *timeout);
540 const struct timespec *deadline);
548 const struct timespec *deadline);
574 struct timespec *deadline),
[all …]
/freebsd/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/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/include/
H A Dtime.h144 int clock_getres(clockid_t, struct timespec *);
145 int clock_gettime(clockid_t, struct timespec *);
146 int clock_settime(clockid_t, const struct timespec *);
147 int nanosleep(const struct timespec *, struct timespec *);
152 int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *);
188 int timespec_get(struct timespec *ts, int base);
193 int timespec_getres(struct timespec *, int);
/freebsd/sys/compat/linux/
H A Dlinux_time.c105 struct timespec *);
107 struct timespec *);
109 struct timespec *);
111 l_int, struct timespec *, struct timespec *);
114 native_to_linux_timespec(struct l_timespec *ltp, struct timespec *ntp) in native_to_linux_timespec()
128 linux_to_native_timespec(struct timespec *ntp, struct l_timespec *ltp) in linux_to_native_timespec()
140 linux_put_timespec(struct timespec *ntp, struct l_timespec *ltp) in linux_put_timespec()
152 linux_get_timespec(struct timespec *ntp, const struct l_timespec *ultp) in linux_get_timespec()
165 native_to_linux_timespec64(struct l_timespec64 *ltp64, struct timespec *ntp) in native_to_linux_timespec64()
175 linux_to_native_timespec64(struct timespec *ntp, struct l_timespec64 *ltp64) in linux_to_native_timespec64()
[all …]
/freebsd/tests/sys/fifo/
H A Dfifo_kqueue.c67 &(struct timespec) { 0, 0 }) == 1); in ATF_TC_BODY()
85 &(struct timespec) { 0, 0 }) == 0); in ATF_TC_BODY()
94 &(struct timespec) { 0, 0 }) == 0); in ATF_TC_BODY()
101 &(struct timespec) { 0, 0 }) == 1); in ATF_TC_BODY()
117 &(struct timespec) { 0, 0 }) == 1); in ATF_TC_BODY()
168 &(struct timespec) { 0, 0 }) == 1); in ATF_TC_BODY()
172 &(struct timespec) { 0, 0 }) == 0); in ATF_TC_BODY()
196 &(struct timespec) { 0, 0 }) == 0); in ATF_TC_BODY()
203 r = kevent(kq, NULL, 0, kev, nitems(kev), &(struct timespec) { 1, 0 }); in ATF_TC_BODY()
212 &(struct timespec) { 0, 0 }) == 0); in ATF_TC_BODY()
[all …]
/freebsd/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/contrib/llvm-project/lldb/include/lldb/Utility/
H A DProcessInfo.h143 struct timespec { struct
198 struct timespec GetUserTime() const { return m_user_time; } in GetUserTime()
200 void SetUserTime(struct timespec utime) { m_user_time = utime; } in SetUserTime()
206 struct timespec GetSystemTime() const { return m_system_time; } in GetSystemTime()
208 void SetSystemTime(struct timespec stime) { m_system_time = stime; } in SetSystemTime()
214 struct timespec GetCumulativeUserTime() const { in GetCumulativeUserTime()
218 void SetCumulativeUserTime(struct timespec cutime) { in SetCumulativeUserTime()
227 struct timespec GetCumulativeSystemTime() const { in GetCumulativeSystemTime()
231 void SetCumulativeSystemTime(struct timespec cstime) { in SetCumulativeSystemTime()
263 struct timespec m_user_time;
[all …]
/freebsd/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;
106 void (*update)(void *, struct timespec *), in rtadvd_add_timer() argument
153 struct timespec *
156 static struct timespec returnval; in rtadvd_check_timer()
157 struct timespec now; in rtadvd_check_timer()
185 rtadvd_set_timer(struct timespec *tm, struct rtadvd_timer *rat) in rtadvd_set_timer()
187 struct timespec now; in rtadvd_set_timer()
/freebsd/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()
/freebsd/lib/libthr/thread/
H A Dthr_umtx.h45 const struct timespec *timeout) __hidden;
55 const struct timespec *timeout) __hidden;
57 const struct timespec *timeout, int shared) __hidden;
59 const struct timespec *timeout, int shared) __hidden;
62 const struct timespec *timeout, int flags) __hidden;
68 const struct timespec *tsp) __hidden;
70 const struct timespec *tsp) __hidden;
136 const struct timespec *timeout) in _thr_umutex_timedlock()
224 _thr_rwlock_rdlock(struct urwlock *rwlock, int flags, struct timespec *tsp) in _thr_rwlock_rdlock()
233 _thr_rwlock_wrlock(struct urwlock *rwlock, struct timespec *tsp) in _thr_rwlock_wrlock()

12345678910>>...32