bin/cp/utils.c
69
struct timespec ts[2];
bin/cp/utils.c
71
ts[0] = fs->st_atimespec;
bin/cp/utils.c
72
ts[1] = fs->st_mtimespec;
bin/cp/utils.c
74
if (lutimens(file, ts)) {
bin/ed/ed.h
128
char *ts; \
bin/ed/ed.h
130
if ((ts = (char *) realloc((b), ti += max((i), MINBUFSZ))) == NULL) { \
bin/ed/ed.h
137
(b) = ts; \
bin/ed/glbl.c
159
line_t **ts;
bin/ed/glbl.c
161
if ((ts = (line_t **) realloc(active_list,
bin/ed/glbl.c
169
active_list = ts;
bin/ksh/c_ksh.c
1033
struct tstate ts;
bin/ksh/c_ksh.c
1035
for (ksh_twalk(&ts, t); (ap = tnext(&ts)); ) {
bin/ksh/edit.c
938
struct tstate ts;
bin/ksh/edit.c
941
for (ksh_twalk(&ts, tp); (te = tnext(&ts)); ) {
bin/ksh/eval.c
1217
XString ts;
bin/ksh/eval.c
1221
Xinit(ts, tp, 16, ATEMP);
bin/ksh/eval.c
1226
Xcheck(ts, tp);
bin/ksh/eval.c
1231
r = (p[0] == EOS || p[0] == CHAR || p[0] == CSUBST) ? tilde(Xstring(ts, tp)) : (char *) 0;
bin/ksh/eval.c
1232
Xfree(ts, tp);
bin/ksh/exec.c
1000
struct tstate ts;
bin/ksh/exec.c
1002
for (ksh_twalk(&ts, &taliases); (tp = tnext(&ts)) != NULL; )
bin/ksh/table.c
154
ksh_twalk(ts, tp)
bin/ksh/table.c
155
struct tstate *ts;
bin/ksh/table.c
158
ts->left = tp->size;
bin/ksh/table.c
159
ts->next = tp->tbls;
bin/ksh/table.c
163
tnext(ts)
bin/ksh/table.c
164
struct tstate *ts;
bin/ksh/table.c
166
while (--ts->left >= 0) {
bin/ksh/table.c
167
struct tbl *p = *ts->next++;
bin/ksh/table.c
215
struct tstate ts;
bin/ksh/table.c
219
ksh_twalk(&ts, tp);
bin/ksh/table.c
220
while ((te = tnext(&ts))) {
bin/ksh/tty.c
17
get_tty(fd, ts)
bin/ksh/tty.c
19
TTY_state *ts;
bin/ksh/tty.c
24
ret = tcgetattr(fd, ts);
bin/ksh/tty.c
27
ret = ioctl(fd, TCGETA, ts);
bin/ksh/tty.c
29
ret = ioctl(fd, TIOCGETP, &ts->sgttyb);
bin/ksh/tty.c
31
if (ioctl(fd, TIOCGATC, &ts->lchars) < 0)
bin/ksh/tty.c
34
if (ioctl(fd, TIOCGETC, &ts->tchars) < 0)
bin/ksh/tty.c
37
if (ioctl(fd, TIOCGLTC, &ts->ltchars) < 0)
bin/ksh/tty.c
47
set_tty(fd, ts, flags)
bin/ksh/tty.c
49
TTY_state *ts;
bin/ksh/tty.c
55
ret = tcsetattr(fd, TCSADRAIN, ts);
bin/ksh/tty.c
70
if (ioctl(tty_fd, TCSETA, ts) < 0)
bin/ksh/tty.c
73
if (ioctl(tty_fd, TCSETAW, ts) < 0)
bin/ksh/tty.c
77
ret = ioctl(fd, TIOCSETN, &ts->sgttyb);
bin/ksh/tty.c
79
if (ioctl(fd, TIOCSATC, &ts->lchars) < 0)
bin/ksh/tty.c
82
if (ioctl(fd, TIOCSETC, &ts->tchars) < 0)
bin/ksh/tty.c
85
if (ioctl(fd, TIOCSLTC, &ts->ltchars) < 0)
bin/ksh/tty.h
100
extern int get_tty ARGS((int fd, TTY_state *ts));
bin/ksh/tty.h
101
extern int set_tty ARGS((int fd, TTY_state *ts, int flags));
bin/mv/mv.c
272
struct timespec ts[2];
bin/mv/mv.c
329
ts[0] = sbp->st_atimespec;
bin/mv/mv.c
330
ts[1] = sbp->st_mtimespec;
bin/mv/mv.c
345
if (futimens(to_fd, ts))
bin/sh/parser.c
1304
struct tokenstate *os, *ts;
bin/sh/parser.c
1317
ts = currentstate(stack);
bin/sh/parser.c
1319
ts->ts_parenlevel = 0; /* parens inside never match outside */
bin/sh/parser.c
1321
ts->ts_quoted = os->ts_quoted & QF; /* these are default settings */
bin/sh/parser.c
1322
ts->ts_varnest = os->ts_varnest;
bin/sh/parser.c
1323
ts->ts_arinest = os->ts_arinest; /* when appropriate */
bin/sh/parser.c
1324
ts->ts_syntax = os->ts_syntax; /* they will be altered */
bin/sh/parser.c
1325
ts->ts_magicq = os->ts_magicq;
crypto/dist/ipsec-tools/src/racoon/dump.c
164
sf_hdr.ts.tv_sec = tv.tv_sec;
crypto/dist/ipsec-tools/src/racoon/dump.c
165
sf_hdr.ts.tv_usec = tv.tv_usec;
crypto/dist/ipsec-tools/src/racoon/dump.c
77
struct pcap_timeval ts; /* time stamp */
crypto/dist/ipsec-tools/src/racoon/logger.c
178
char ts[256];
crypto/dist/ipsec-tools/src/racoon/logger.c
191
strftime(ts, sizeof(ts), "%B %d %T", tm);
crypto/dist/ipsec-tools/src/racoon/logger.c
192
fprintf(fp, "%s: %s\n", ts, p->buf[j]);
crypto/dist/ipsec-tools/src/racoon/schedule.c
67
struct timespec ts;
crypto/dist/ipsec-tools/src/racoon/schedule.c
69
clock_gettime(CLOCK_MONOTONIC, &ts);
crypto/dist/ipsec-tools/src/racoon/schedule.c
70
tv->tv_sec = ts.tv_sec;
crypto/dist/ipsec-tools/src/racoon/schedule.c
71
tv->tv_usec = ts.tv_nsec / 1000;
dist/pf/sbin/pfctl/pfctl_table.c
384
print_tstats(struct pfr_tstats *ts, int debug)
dist/pf/sbin/pfctl/pfctl_table.c
386
time_t time = ts->pfrts_tzero;
dist/pf/sbin/pfctl/pfctl_table.c
389
if (!debug && !(ts->pfrts_flags & PFR_TFLAG_ACTIVE))
dist/pf/sbin/pfctl/pfctl_table.c
391
print_table(&ts->pfrts_t, 1, debug);
dist/pf/sbin/pfctl/pfctl_table.c
392
printf("\tAddresses: %d\n", ts->pfrts_cnt);
dist/pf/sbin/pfctl/pfctl_table.c
395
ts->pfrts_refcnt[PFR_REFCNT_ANCHOR],
dist/pf/sbin/pfctl/pfctl_table.c
396
ts->pfrts_refcnt[PFR_REFCNT_RULE]);
dist/pf/sbin/pfctl/pfctl_table.c
398
(unsigned long long)ts->pfrts_nomatch,
dist/pf/sbin/pfctl/pfctl_table.c
399
(unsigned long long)ts->pfrts_match);
dist/pf/sbin/pfctl/pfctl_table.c
404
(unsigned long long)ts->pfrts_packets[dir][op],
dist/pf/sbin/pfctl/pfctl_table.c
405
(unsigned long long)ts->pfrts_bytes[dir][op]);
dist/pf/sbin/pflogd/pflogd.c
120
struct pcap_timeval ts;
dist/pf/sbin/pflogd/pflogd.c
481
sf_hdr.ts.tv_sec = h->ts.tv_sec;
dist/pf/sbin/pflogd/pflogd.c
482
sf_hdr.ts.tv_usec = h->ts.tv_usec;
dist/pf/sbin/pflogd/pflogd.c
606
sf_hdr.ts.tv_sec = h->ts.tv_sec;
dist/pf/sbin/pflogd/pflogd.c
607
sf_hdr.ts.tv_usec = h->ts.tv_usec;
games/gomoku/pickmove.c
123
spot_index ts = PT(BSZ, BSZ); /* their spot */
games/gomoku/pickmove.c
143
if (better(s, ts, them)) /* pick their best move */
games/gomoku/pickmove.c
144
ts = s;
games/gomoku/pickmove.c
148
spot_index bs = us == BLACK ? os : ts;
games/gomoku/pickmove.c
149
spot_index ws = us == BLACK ? ts : os;
games/gomoku/pickmove.c
170
if (board[ts].s_combo[them].cv_force == 1 &&
games/gomoku/pickmove.c
171
!BIT_TEST(forcemap, ts))
games/gomoku/pickmove.c
176
union comboval tcv = board[ts].s_combo[them];
games/gomoku/pickmove.c
186
return ts;
include/time.h
270
int timespec_get(struct timespec *ts, int base);
include/time.h
273
int timespec_getres(struct timespec *ts, int base);
lib/libbluetooth/bt_dev.c
234
struct timespec ts;
lib/libbluetooth/bt_dev.c
251
ts.tv_sec = to;
lib/libbluetooth/bt_dev.c
252
ts.tv_nsec = 0;
lib/libbluetooth/bt_dev.c
254
while (kevent(kq, &ev, 1, &ev, 1, &ts) == -1) {
lib/libc/compat/sys/compat___lwp_park50.c
53
___lwp_park50(const struct timespec *ts, lwpid_t unpark, const void *hint,
lib/libc/compat/sys/compat___lwp_park50.c
57
if (ts)
lib/libc/compat/sys/compat___lwp_park50.c
58
ts1 = *ts;
lib/libc/compat/sys/compat__lwp_park.c
59
struct timespec ts, *tsp;
lib/libc/compat/sys/compat__lwp_park.c
62
timespec50_to_timespec(ts50, tsp = &ts);
lib/libc/compat/sys/compat_adjtime.c
62
struct timeval ts, *tsp;
lib/libc/compat/sys/compat_adjtime.c
68
timeval50_to_timeval(ts50, tsp = &ts);
lib/libc/compat/sys/compat_aio_suspend.c
63
struct timespec ts, *tsp;
lib/libc/compat/sys/compat_aio_suspend.c
66
timespec50_to_timespec(ts50, tsp = &ts);
lib/libc/compat/sys/compat_kevent.c
60
struct timespec ts, *tsp;
lib/libc/compat/sys/compat_kevent.c
63
timespec50_to_timespec(ts50, tsp = &ts);
lib/libc/compat/sys/compat_lfs_segwait.c
57
struct timeval ts, *tsp;
lib/libc/compat/sys/compat_lfs_segwait.c
60
timeval50_to_timeval(ts50, tsp = &ts);
lib/libc/compat/sys/compat_mqueue.c
66
struct timespec ts, *tsp;
lib/libc/compat/sys/compat_mqueue.c
69
timespec50_to_timespec(ts50, tsp = &ts);
lib/libc/compat/sys/compat_mqueue.c
79
struct timespec ts, *tsp;
lib/libc/compat/sys/compat_mqueue.c
82
timespec50_to_timespec(ts50, tsp = &ts);
lib/libc/compat/sys/compat_nanosleep.c
62
struct timespec ts, *tsp;
lib/libc/compat/sys/compat_nanosleep.c
68
timespec50_to_timespec(ts50, tsp = &ts);
lib/libc/compat/sys/compat_sigtimedwait.c
61
struct timespec ts;
lib/libc/compat/sys/compat_sigtimedwait.c
64
timespec50_to_timespec(timeout, &ts);
lib/libc/compat/sys/compat_sigtimedwait.c
65
return ____sigtimedwait50(set, info, &ts);
lib/libc/gen/timespec_get.c
43
timespec_get(struct timespec *ts, int base)
lib/libc/gen/timespec_get.c
46
_DIAGASSERT(ts != NULL);
lib/libc/gen/timespec_get.c
50
if (clock_gettime(CLOCK_REALTIME, ts) == -1)
lib/libc/gen/timespec_get.c
54
if (clock_gettime(CLOCK_MONOTONIC, ts) == -1)
lib/libc/gen/timespec_getres.c
41
timespec_getres(struct timespec *ts, int base)
lib/libc/gen/timespec_getres.c
44
_DIAGASSERT(ts != NULL);
lib/libc/gen/timespec_getres.c
48
if (clock_getres(CLOCK_REALTIME, ts) == -1)
lib/libc/gen/timespec_getres.c
52
if (clock_getres(CLOCK_MONOTONIC, ts) == -1)
lib/libc/gen/usleep.c
49
struct timespec ts;
lib/libc/gen/usleep.c
54
ts.tv_sec = (useconds / 1000000);
lib/libc/gen/usleep.c
55
ts.tv_nsec = (useconds % 1000000) * 1000;
lib/libc/gen/usleep.c
57
nanosleep(&ts, NULL);
lib/libc/isc/ev_timers.c
168
struct timespec ts;
lib/libc/isc/ev_timers.c
170
ts.tv_sec = tv.tv_sec;
lib/libc/isc/ev_timers.c
171
ts.tv_nsec = tv.tv_usec * 1000;
lib/libc/isc/ev_timers.c
172
return (ts);
lib/libc/isc/ev_timers.c
176
evTimeVal(struct timespec ts) {
lib/libc/isc/ev_timers.c
179
tv.tv_sec = ts.tv_sec;
lib/libc/isc/ev_timers.c
180
tv.tv_usec = (suseconds_t)(ts.tv_nsec / 1000);
lib/libc/resolv/res_init.c
159
static const struct timespec ts = { 0, 0 };
lib/libc/resolv/res_init.c
204
(void)kevent(ext->kq, &kc, 1, NULL, 0, &ts);
lib/libc/resolv/res_init.c
590
switch (kevent(statp->_u._ext.ext->kq, NULL, 0, &ke, 1, &ts)) {
lib/libc/rpc/clnt_bcast.c
297
struct timespec ts;
lib/libc/rpc/clnt_bcast.c
526
ts.tv_sec = msec / 1000;
lib/libc/rpc/clnt_bcast.c
527
ts.tv_nsec = (msec % 1000) * 1000000;
lib/libc/rpc/clnt_bcast.c
529
switch (pollretval = pollts(pfd, fdlistno, &ts, NULL)) {
lib/libc/rpc/clnt_dg.c
335
struct timespec ts;
lib/libc/rpc/clnt_dg.c
410
TIMEVAL_TO_TIMESPEC(&tv, &ts);
lib/libc/rpc/clnt_dg.c
412
n = pollts(&cu->cu_pfdp, 1, &ts, maskp);
lib/libc/rpc/clnt_vc.c
697
struct timespec ts;
lib/libc/rpc/clnt_vc.c
703
TIMEVAL_TO_TIMESPEC(&ct->ct_wait, &ts);
lib/libc/rpc/clnt_vc.c
707
switch (pollts(&fd, 1, &ts, NULL)) {
lib/libc/rpc/svc_vc.c
476
static const struct timespec ts = { 35, 0 };
lib/libc/rpc/svc_vc.c
536
switch (pollts(&pollfd, 1, &ts, NULL)) {
lib/libc/sys/epoll.c
59
struct timespec ts, *tsp;
lib/libc/sys/epoll.c
62
ts.tv_sec = timeout / 1000;
lib/libc/sys/epoll.c
63
ts.tv_nsec = (timeout % 1000) * 1000000;
lib/libc/sys/epoll.c
64
tsp = &ts;
lib/libc/sys/sigtimedwait.c
51
struct timespec ts;
lib/libc/sys/sigtimedwait.c
54
ts = *timeout;
lib/libc/sys/sigtimedwait.c
55
return __sigtimedwait(set, info, &ts);
lib/libc/time/localtime.c
1350
struct state *ts = &lsp->u.st;
lib/libc/time/localtime.c
1353
if (tzparse(&up->buf[1], ts, sp)) {
lib/libc/time/localtime.c
1364
for (i = 0; i < ts->typecnt; i++) {
lib/libc/time/localtime.c
1365
char *tsabbr = ts->chars + ts->ttis[i].tt_desigidx;
lib/libc/time/localtime.c
1369
ts->ttis[i].tt_desigidx = j;
lib/libc/time/localtime.c
1380
ts->ttis[i].tt_desigidx = j;
lib/libc/time/localtime.c
1385
if (gotabbr == ts->typecnt) {
lib/libc/time/localtime.c
1396
sp->goahead = ts->goahead;
lib/libc/time/localtime.c
1398
for (i = 0; i < ts->timecnt; i++) {
lib/libc/time/localtime.c
1399
__time_t t = ts->ats[i];
lib/libc/time/localtime.c
1410
+ ts->types[i]);
lib/libc/time/localtime.c
1413
for (i = 0; i < ts->typecnt; i++)
lib/libc/time/localtime.c
1414
sp->ttis[sp->typecnt++] = ts->ttis[i];
lib/libcurses/border.c
163
cchar_t ls, rs, ts, bs, tl, tr, bl, br;
lib/libcurses/border.c
177
S(top, ts, WACS_HLINE);
lib/libcurses/border.c
188
int border_set(const cchar_t *ls, const cchar_t *rs, const cchar_t *ts,
lib/libcurses/border.c
195
return wborder_set(stdscr, ls, rs, ts, bs, tl, tr, bl, br);
lib/libcurses/border.c
200
const cchar_t *ts, const cchar_t *bs,
lib/libcurses/border.c
222
if (ts && wcwidth( ts->vals[0]))
lib/libcurses/border.c
223
memcpy(&top, ts, sizeof(cchar_t));
lib/libcurses/cr_put.c
507
tabcol(int col, int ts)
lib/libcurses/cr_put.c
516
return (col + ts - (col % ts) + offset);
lib/libcurses/pause.c
51
struct timespec ts;
lib/libcurses/pause.c
54
ts.tv_sec = ms / 1000;
lib/libcurses/pause.c
55
ts.tv_nsec = (ms % 1000) * 1000000;
lib/libcurses/pause.c
56
(void)nanosleep(&ts, NULL);
lib/libcurses/slk.c
816
char ts[MB_LEN_MAX];
lib/libcurses/slk.c
845
inc = wctomb(ts, l->label[lcnt]);
lib/libedit/terminal.c
1273
char **ts;
lib/libedit/terminal.c
1289
for (t = tstr, ts = el->el_terminal.t_str; t->name != NULL; t++, ts++) {
lib/libedit/terminal.c
1291
if (*ts && **ts) {
lib/libedit/terminal.c
1293
ct_decode_string(*ts, &el->el_scratch),
lib/libedit/terminal.c
1314
const struct termcapstr *ts;
lib/libedit/terminal.c
1329
for (ts = tstr; ts->name != NULL; ts++)
lib/libedit/terminal.c
1330
if (strcmp(ts->name, what) == 0)
lib/libedit/terminal.c
1333
if (ts->name != NULL) {
lib/libedit/terminal.c
1334
terminal_alloc(el, ts, how);
lib/libedit/terminal.c
1400
const struct termcapstr *ts;
lib/libedit/terminal.c
1414
for (ts = tstr; ts->name != NULL; ts++)
lib/libedit/terminal.c
1415
if (strcmp(ts->name, what) == 0)
lib/libedit/terminal.c
1418
if (ts->name != NULL) {
lib/libedit/terminal.c
1419
*(char **)how = el->el_terminal.t_str[ts - tstr];
lib/libedit/terminal.c
945
struct ttysize ts;
lib/libedit/terminal.c
946
if (ioctl(el->el_infd, TIOCGSIZE, &ts) != -1) {
lib/libedit/terminal.c
947
if (ts.ts_cols)
lib/libedit/terminal.c
948
*cols = ts.ts_cols;
lib/libedit/terminal.c
949
if (ts.ts_lines)
lib/libedit/terminal.c
950
*lins = ts.ts_lines;
lib/libform/field.c
894
_formi_tab_t *ts, *nts;
lib/libform/field.c
908
ts = field->alines[i].tabs;
lib/libform/field.c
909
while (ts != NULL) {
lib/libform/field.c
910
nts = ts->fwd;
lib/libform/field.c
911
free(ts);
lib/libform/field.c
912
ts = nts;
lib/libform/internals.c
1371
_formi_tab_t *ts;
lib/libform/internals.c
1398
ts = row->tabs;
lib/libform/internals.c
1400
while ((ts != NULL) && (ts->in_use == TRUE)
lib/libform/internals.c
1401
&& (ts->pos < end))
lib/libform/internals.c
1402
ts = ts->fwd;
lib/libform/internals.c
1407
assert((ts != NULL)
lib/libform/internals.c
1408
&& (ts->in_use == TRUE));
lib/libform/internals.c
1409
if (ts->pos == end) {
lib/libform/internals.c
1410
if ((expanded + ts->size)
lib/libform/internals.c
1413
expanded += ts->size;
lib/libform/internals.c
1414
ts = ts->fwd;
lib/libform/internals.c
1417
assert(ts->pos == end);
lib/libform/internals.c
1708
_formi_tab_t *ts = row->tabs;
lib/libform/internals.c
1710
while ((ts != NULL) && (ts->pos != i))
lib/libform/internals.c
1711
ts = ts->fwd;
lib/libform/internals.c
1713
assert(ts != NULL);
lib/libform/internals.c
1715
for (j = 0; j < ts->size; j++)
lib/libform/internals.c
1718
return ts->size;
lib/libform/internals.c
3371
_formi_tab_t *ts = row->tabs, *old_ts = NULL, **tsp;
lib/libform/internals.c
3378
for (; ts != NULL; ts = ts->fwd)
lib/libform/internals.c
3379
ts->in_use = FALSE;
lib/libform/internals.c
3413
_formi_tab_t *ts;
lib/libform/internals.c
3415
ts = row->tabs;
lib/libform/internals.c
3416
while ((ts != NULL) && (ts->pos != i))
lib/libform/internals.c
3417
ts = ts->fwd;
lib/libform/internals.c
3419
if (ts == NULL)
lib/libform/internals.c
3422
return ts->size;
lib/libform/internals.c
3436
_formi_tab_t *ts;
lib/libform/internals.c
3439
ts = field->alines->tabs;
lib/libform/internals.c
3445
if (ts == NULL) {
lib/libform/internals.c
3452
while ((ts->fwd != NULL) && (ts->fwd->in_use == TRUE))
lib/libform/internals.c
3453
ts = ts->fwd;
lib/libform/internals.c
3459
while ((ts != NULL) && (ts->in_use == TRUE) && (ts->pos > pos))
lib/libform/internals.c
3460
ts = ts->back;
lib/libform/internals.c
3465
assert((ts != NULL) && (ts->in_use == TRUE));
lib/libform/internals.c
3466
if (ts->pos == i) {
lib/libform/internals.c
3467
if ((scroll_amt + ts->size) > window) {
lib/libform/internals.c
3470
scroll_amt += ts->size;
lib/libform/internals.c
3471
ts = ts->back;
lib/libform/internals.c
3474
assert(ts->pos == i);
lib/libform/internals.c
3494
_formi_tab_t *ts;
lib/libform/internals.c
3496
ts = row->tabs;
lib/libform/internals.c
3506
assert((ts != NULL) && (ts->in_use == TRUE));
lib/libform/internals.c
3507
if (ts->pos == row_pos) {
lib/libform/internals.c
3508
if ((len + ts->size) > width)
lib/libform/internals.c
3510
len += ts->size;
lib/libform/internals.c
3511
ts = ts->fwd;
lib/libform/internals.c
3514
assert(ts->pos == row_pos);
lib/libp2k/p2k.c
489
struct timespec ts;
lib/libp2k/p2k.c
494
ts.tv_sec = 0;
lib/libp2k/p2k.c
495
ts.tv_nsec = 1000*1000*10; /* 10ms */
lib/libp2k/p2k.c
497
puffs_ml_settimeout(pu, &ts);
lib/libperfuse/debug.c
221
struct timespec ts;
lib/libperfuse/debug.c
223
ts.tv_sec = 0; /* delint */
lib/libperfuse/debug.c
224
ts.tv_nsec = 0; /* delint */
lib/libperfuse/debug.c
225
timespecsub(&pt->pt_end, &pt->pt_start, &ts);
lib/libperfuse/debug.c
228
pt->pt_error, (long long)ts.tv_sec,
lib/libperfuse/debug.c
229
ts.tv_nsec);
lib/libperfuse/debug.c
233
&ts,
lib/libperfuse/debug.c
236
if (timespeccmp(&ts, &ts_min[pt->pt_opcode], <) ||
lib/libperfuse/debug.c
238
ts_min[pt->pt_opcode] = ts;
lib/libperfuse/debug.c
240
if (timespeccmp(&ts, &ts_max[pt->pt_opcode], >))
lib/libperfuse/debug.c
241
ts_max[pt->pt_opcode] = ts;
lib/libpthread/cnd.c
90
const struct timespec * __restrict ts)
lib/libpthread/cnd.c
95
_DIAGASSERT(ts != NULL);
lib/libpthread/cnd.c
97
switch (pthread_cond_timedwait(cond, mtx, ts)) {
lib/libpthread/mtx.c
119
mtx_timedlock(mtx_t *__restrict mtx, const struct timespec *__restrict ts)
lib/libpthread/mtx.c
123
_DIAGASSERT(ts != NULL);
lib/libpthread/mtx.c
125
switch(pthread_mutex_timedlock(mtx, ts)) {
lib/libpthread/pthread_cancelstub.c
307
size_t nrev, const struct timespec *ts)
lib/libpthread/pthread_cancelstub.c
314
retval = _sys___kevent100(fd, ev, nev, rev, nrev, ts);
lib/libpthread/pthread_cancelstub.c
489
__pollts50(struct pollfd *fds, nfds_t nfds, const struct timespec *ts,
lib/libpthread/pthread_cancelstub.c
497
retval = _sys___pollts50(fds, nfds, ts, sigmask);
lib/libpthread/pthread_mutex.c
217
pthread_mutex_timedlock(pthread_mutex_t* ptm, const struct timespec *ts)
lib/libpthread/pthread_mutex.c
233
return pthread__mutex_lock_slow(ptm, ts);
lib/libpthread/pthread_mutex.c
270
pthread__mutex_lock_slow(pthread_mutex_t *ptm, const struct timespec *ts)
lib/libpthread/pthread_mutex.c
362
__UNCONST(ts), 0, NULL, NULL);
lib/libpthread/pthread_rwlock.c
158
pthread__rwlock_rdlock(pthread_rwlock_t *ptr, const struct timespec *ts)
lib/libpthread/pthread_rwlock.c
226
ts, 0);
lib/libpthread/pthread_rwlock.c
277
pthread__rwlock_wrlock(pthread_rwlock_t *ptr, const struct timespec *ts)
lib/libpthread/pthread_rwlock.c
348
ts, 0);
lib/libpuffs/puffs.c
403
puffs_ml_settimeout(struct puffs_usermount *pu, struct timespec *ts)
lib/libpuffs/puffs.c
406
if (ts == NULL) {
lib/libpuffs/puffs.c
409
pu->pu_ml_timeout = *ts;
lib/librumphijack/hijack.c
2122
struct timespec ts, *tsp = NULL;
lib/librumphijack/hijack.c
2124
TIMEVAL_TO_TIMESPEC(timeout, &ts);
lib/librumphijack/hijack.c
2125
tsp = &ts;
lib/librumphijack/hijack.c
2164
const struct timespec *ts;
lib/librumphijack/hijack.c
2179
rv = op_pollts(parg->pfds, parg->nfds, parg->ts, parg->sigmask);
lib/librumphijack/hijack.c
2188
REALPOLLTS(struct pollfd *fds, nfds_t nfds, const struct timespec *ts,
lib/librumphijack/hijack.c
2199
DPRINTF(("poll %p %d %p %p\n", fds, (int)nfds, ts, sigmask));
lib/librumphijack/hijack.c
2291
parg.ts = ts;
lib/librumphijack/hijack.c
2297
rv_rump = op_pollts(pfd_rump, nfds+1, ts, NULL);
lib/librumphijack/hijack.c
2373
rv = op_pollts(fds, nfds, ts, sigmask);
lib/librumphijack/hijack.c
2384
struct timespec ts;
lib/librumphijack/hijack.c
2388
ts.tv_sec = timeout / 1000;
lib/librumphijack/hijack.c
2389
ts.tv_nsec = (timeout % 1000) * 1000*1000;
lib/librumphijack/hijack.c
2391
tsp = &ts;
lib/librumphijack/hijack.c
2654
(int fd, const struct timespec ts[2]), \
lib/librumphijack/hijack.c
2656
(fd, ts))
lib/librumpuser/rumpfiber.c
130
struct timespec ts;
lib/librumpuser/rumpfiber.c
133
rv = clock_gettime(CLOCK_MONOTONIC, &ts);
lib/librumpuser/rumpfiber.c
135
return (ts.tv_sec * 1000LL) + (ts.tv_nsec / 1000000LL);
lib/librumpuser/rumpfiber.c
347
struct timespec ts;
lib/librumpuser/rumpfiber.c
351
clock_gettime(CLOCK_REALTIME, &ts);
lib/librumpuser/rumpfiber.c
352
real_now = 1000*ts.tv_sec + ts.tv_nsec/(1000*1000);
lib/librumpuser/rumpfiber.c
458
struct timespec ts;
lib/librumpuser/rumpfiber.c
473
if (clock_gettime(clk, &ts) == -1) {
lib/librumpuser/rumpfiber.c
476
*sec = ts.tv_sec;
lib/librumpuser/rumpfiber.c
477
*nsec = ts.tv_nsec;
lib/librumpuser/rumpuser.c
102
if (clock_gettime(clk, &ts) == -1) {
lib/librumpuser/rumpuser.c
105
*sec = ts.tv_sec;
lib/librumpuser/rumpuser.c
106
*nsec = ts.tv_nsec;
lib/librumpuser/rumpuser.c
145
struct timespec ts, tsr;
lib/librumpuser/rumpuser.c
146
if ((rv = clock_gettime(CLOCK_REALTIME, &ts)) == -1)
lib/librumpuser/rumpuser.c
148
if (ts.tv_sec == rqt.tv_sec ?
lib/librumpuser/rumpuser.c
149
ts.tv_nsec > rqt.tv_nsec : ts.tv_sec > rqt.tv_sec) {
lib/librumpuser/rumpuser.c
152
tsr.tv_sec = rqt.tv_sec - ts.tv_sec;
lib/librumpuser/rumpuser.c
153
tsr.tv_nsec = rqt.tv_nsec - ts.tv_nsec;
lib/librumpuser/rumpuser.c
83
struct timespec ts;
lib/librumpuser/rumpuser_port.h
132
clock_gettime(clockid_t clk, struct timespec *ts)
lib/librumpuser/rumpuser_port.h
137
ts->tv_sec = tv.tv_sec;
lib/librumpuser/rumpuser_port.h
138
ts->tv_nsec = tv.tv_usec * 1000;
lib/librumpuser/rumpuser_port.h
318
#define TIMEVAL_TO_TIMESPEC(tv, ts) \
lib/librumpuser/rumpuser_port.h
320
(ts)->tv_sec = (tv)->tv_sec; \
lib/librumpuser/rumpuser_port.h
321
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
lib/librumpuser/rumpuser_pth.c
302
struct timespec ts;
lib/librumpuser/rumpuser_pth.c
305
ts.tv_sec = 0;
lib/librumpuser/rumpuser_pth.c
306
ts.tv_nsec = 1;
lib/librumpuser/rumpuser_pth.c
307
KLOCK_WRAP(nanosleep(&ts, NULL));
lib/librumpuser/rumpuser_pth.c
583
struct timespec ts;
lib/librumpuser/rumpuser_pth.c
593
clock_gettime(CLOCK_REALTIME, &ts);
lib/librumpuser/rumpuser_pth.c
598
ts.tv_sec += sec;
lib/librumpuser/rumpuser_pth.c
599
ts.tv_nsec += nsec;
lib/librumpuser/rumpuser_pth.c
600
if (ts.tv_nsec >= 1000*1000*1000) {
lib/librumpuser/rumpuser_pth.c
601
ts.tv_sec++;
lib/librumpuser/rumpuser_pth.c
602
ts.tv_nsec -= 1000*1000*1000;
lib/librumpuser/rumpuser_pth.c
604
rv = pthread_cond_timedwait(&cv->pthcv, &mtx->pthmtx, &ts);
lib/librumpuser/rumpuser_pth.c
75
const struct timespec ts = {0, 10*1000*1000};
lib/librumpuser/rumpuser_pth.c
80
nanosleep(&ts, NULL);
lib/librumpuser/rumpuser_pth_dummy.c
273
struct timespec ts;
lib/librumpuser/rumpuser_pth_dummy.c
276
ts.tv_sec = sec;
lib/librumpuser/rumpuser_pth_dummy.c
278
ts.tv_nsec = nsec;
lib/librumpuser/rumpuser_pth_dummy.c
280
nanosleep(&ts, NULL);
libexec/httpd/bozohttpd.c
621
struct timespec ots, ts;
libexec/httpd/bozohttpd.c
709
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) {
libexec/httpd/bozohttpd.c
724
if (ts.tv_sec > ots.tv_sec &&
libexec/httpd/bozohttpd.c
725
ts.tv_sec > httpd->request_timeout &&
libexec/httpd/bozohttpd.c
726
ts.tv_sec - httpd->request_timeout > ots.tv_sec)
regress/sys/uvm/pdsim/lirs.c
192
int ts = 1;
regress/sys/uvm/pdsim/lirs.c
202
DFPRINTF(stderr, "---------- ts %d\n", ts);
regress/sys/uvm/pdsim/lirs.c
209
bp->b_irr = ts - bp->b_lastts - 1;
regress/sys/uvm/pdsim/lirs.c
211
bp->b_lastts = ts;
regress/sys/uvm/pdsim/lirs.c
265
ts++;
regress/sys/uvm/pdsim/pdsim.c
186
ts++;
regress/sys/uvm/pdsim/pdsim.c
188
irr[index] = ts - lastacc[index];
regress/sys/uvm/pdsim/pdsim.c
190
lastacc[index] = ts;
regress/sys/uvm/pdsim/pdsim.c
49
int ts;
sbin/cgdconfig/params.c
1014
print_kvpair_int(f, ts, "iterations", kg->kg_iterations);
sbin/cgdconfig/params.c
1015
print_kvpair_int(f, ts, "memory", kg->kg_memory);
sbin/cgdconfig/params.c
1016
print_kvpair_int(f, ts, "parallelism", kg->kg_parallelism);
sbin/cgdconfig/params.c
1017
print_kvpair_int(f, ts, "version", kg->kg_version);
sbin/cgdconfig/params.c
1018
print_kvpair_b64(f, 0, ts, "salt", kg->kg_salt);
sbin/cgdconfig/params.c
1019
print_shared(f, ts, kg);
sbin/cgdconfig/params.c
1025
print_kvpair_int(f, ts, "iterations", kg->kg_iterations);
sbin/cgdconfig/params.c
1026
print_kvpair_b64(f, 0, ts, "salt", kg->kg_salt);
sbin/cgdconfig/params.c
1027
print_shared(f, ts, kg);
sbin/cgdconfig/params.c
1032
print_kvpair_int(f, ts, "iterations", kg->kg_iterations);
sbin/cgdconfig/params.c
1033
print_kvpair_b64(f, 0, ts, "salt", kg->kg_salt);
sbin/cgdconfig/params.c
1034
print_shared(f, ts, kg);
sbin/cgdconfig/params.c
1041
return keygen_fput(kg->next, ts, f);
sbin/cgdconfig/params.c
1047
int ts = 0; /* tabstop of 0 spaces */
sbin/cgdconfig/params.c
1049
print_kvpair_string(f, ts, "algorithm", p->algorithm);
sbin/cgdconfig/params.c
1050
print_kvpair_string(f, ts, "iv-method", p->ivmeth);
sbin/cgdconfig/params.c
1051
print_kvpair_int(f, ts, "keylength", p->keylen);
sbin/cgdconfig/params.c
1052
print_kvpair_int(f, ts, "blocksize", p->bsize);
sbin/cgdconfig/params.c
1055
print_kvpair_cstr(f, ts, "verify_method", "none");
sbin/cgdconfig/params.c
1058
print_kvpair_cstr(f, ts, "verify_method", "disklabel");
sbin/cgdconfig/params.c
1061
print_kvpair_cstr(f, ts, "verify_method", "ffs");
sbin/cgdconfig/params.c
1064
print_kvpair_cstr(f, ts, "verify_method", "re-enter");
sbin/cgdconfig/params.c
1067
print_kvpair_cstr(f, ts, "verify_method", "mbr");
sbin/cgdconfig/params.c
1070
print_kvpair_cstr(f, ts, "verify_method", "gpt");
sbin/cgdconfig/params.c
1074
print_kvpair_cstr(f, ts, "verify_method", "zfs");
sbin/cgdconfig/params.c
903
print_kvpair_cstr(FILE *f, int ts, const char *key, const char *val)
sbin/cgdconfig/params.c
906
spaces(f, ts);
sbin/cgdconfig/params.c
911
print_kvpair_string(FILE *f, int ts, const char *key, const string_t *val)
sbin/cgdconfig/params.c
914
print_kvpair_cstr(f, ts, key, string_tocharstar(val));
sbin/cgdconfig/params.c
918
print_kvpair_int(FILE *f, int ts, const char *key, size_t val)
sbin/cgdconfig/params.c
927
print_kvpair_cstr(f, ts, key, tmp);
sbin/cgdconfig/params.c
938
print_kvpair_b64(FILE *f, int curpos, int ts, const char *key, bits_t *val)
sbin/cgdconfig/params.c
953
spaces(f, ts);
sbin/cgdconfig/params.c
955
curpos += ts + strlen(key) + 1;
sbin/cgdconfig/params.c
956
ts = curpos;
sbin/cgdconfig/params.c
961
spaces(f, ts);
sbin/cgdconfig/params.c
962
pos = ts;
sbin/cgdconfig/params.c
971
print_shared(FILE *f, int ts, struct keygen *kg)
sbin/cgdconfig/params.c
982
fprintf(f, "%*sshared \"%s\" \\\n", ts, "",
sbin/cgdconfig/params.c
984
ts += 4;
sbin/cgdconfig/params.c
985
fprintf(f, "%*salgorithm %s \\\n", ts, "",
sbin/cgdconfig/params.c
987
print_kvpair_b64(f, 0, ts, "subkey", kg->kg_sharedinfo);
sbin/cgdconfig/params.c
991
keygen_fput(struct keygen *kg, int ts, FILE *f)
sbin/fsck_lfs/lfs.c
386
lfs_dino_setatime(fs, ip->i_din, ts.tv_sec);
sbin/fsck_lfs/lfs.c
387
lfs_dino_setatimensec(fs, ip->i_din, ts.tv_nsec);
sbin/fsck_lfs/segwrite.c
254
struct timespec ts;
sbin/fsck_lfs/segwrite.c
293
ts.tv_nsec = 0;
sbin/fsck_lfs/segwrite.c
294
ts.tv_sec = write_time;
sbin/fsck_lfs/segwrite.c
297
LFS_ITIMES(ip, &ts, &ts, &ts);
sbin/ifconfig/ifconfig.c
533
const struct timespec ts = { .tv_sec = 0, .tv_nsec = WAIT_DAD };
sbin/ifconfig/ifconfig.c
579
nanosleep(&ts, NULL);
sbin/mount_portal/puffs_portal.c
546
struct timespec ts;
sbin/mount_portal/puffs_portal.c
566
TIMEVAL_TO_TIMESPEC(&tv, &ts);
sbin/mount_portal/puffs_portal.c
568
va->va_birthtime = ts;
sbin/routed/defs.h
301
time_t ts; /* timestamp on network stats */
sbin/routed/if.c
1005
if (now.tv_sec < ifp->int_data.ts+CHECK_BAD_INTERVAL)
sbin/routed/if.c
1015
if (ifp->int_data.ts == 0) {
sbin/routed/if.c
575
ifp->int_data.ts = now.tv_sec;
sbin/routed/if.c
613
ifp->int_data.ts = 0;
sbin/routed/if.c
768
ifs0.int_data.ts = now.tv_sec;
sbin/routed/if.c
984
} else if (now.tv_sec>(ifp->int_data.ts
sbin/routed/if.c
990
ifp->int_data.ts);
sbin/routed/trace.c
173
(void)fprintf(ftrace, "-- %s --\n", ts(now.tv_sec));
sbin/routed/trace.c
624
(void)fprintf(ftrace, "%s ", ts(rts->rts_time));
sbin/routed/trace.c
855
RT->rt_poison_metric, ts(RT->rt_poison_time));
sbin/wdogctl/wdogctl.c
231
struct timespec ts;
sbin/wdogctl/wdogctl.c
299
ts.tv_sec = wm.wm_period / 2;
sbin/wdogctl/wdogctl.c
300
ts.tv_nsec = 0;
sbin/wdogctl/wdogctl.c
301
(void)nanosleep(&ts, NULL);
share/examples/puffs/pgfs/pgfs_puffs.c
842
char *ts;
share/examples/puffs/pgfs/pgfs_puffs.c
844
error = timespec_to_pgtimestamp(&va->va_atime, &ts);
share/examples/puffs/pgfs/pgfs_puffs.c
852
error = simplecmd(xc, c, ts, fileid);
share/examples/puffs/pgfs/pgfs_puffs.c
853
free(ts);
share/examples/puffs/pgfs/pgfs_puffs.c
860
char *ts;
share/examples/puffs/pgfs/pgfs_puffs.c
862
error = timespec_to_pgtimestamp(&va->va_mtime, &ts);
share/examples/puffs/pgfs/pgfs_puffs.c
870
error = simplecmd(xc, c, ts, fileid);
share/examples/puffs/pgfs/pgfs_puffs.c
871
free(ts);
share/examples/puffs/pgfs/pgfs_puffs.c
878
char *ts;
share/examples/puffs/pgfs/pgfs_puffs.c
880
error = timespec_to_pgtimestamp(&va->va_ctime, &ts);
share/examples/puffs/pgfs/pgfs_puffs.c
888
error = simplecmd(xc, c, ts, fileid);
share/examples/puffs/pgfs/pgfs_puffs.c
889
free(ts);
share/examples/puffs/pgfs/pgfs_puffs.c
896
char *ts;
share/examples/puffs/pgfs/pgfs_puffs.c
898
error = timespec_to_pgtimestamp(&va->va_birthtime, &ts);
share/examples/puffs/pgfs/pgfs_puffs.c
906
error = simplecmd(xc, c, ts, fileid);
share/examples/puffs/pgfs/pgfs_puffs.c
907
free(ts);
sys/arch/arm/acpi/acpi_cpu_md.c
362
acpicpu_md_tstate_set(struct acpicpu_tstate *ts)
sys/arch/hpcmips/dev/ucbsnd.c
490
tx_sound_tag_t ts = &sc->sc_tag;
sys/arch/hpcmips/dev/ucbsnd.c
493
ts->ts_v = sc;
sys/arch/hpcmips/dev/ucbsnd.c
494
ts->ts_click = __ucbsnd_sound_click;
sys/arch/hpcmips/dev/ucbsnd.c
495
ts->ts_mute = __ucbsnd_sound_mute;
sys/arch/hpcmips/dev/ucbsnd.c
497
tx_conf_register_sound(tc, ts);
sys/arch/sparc/sparc/cache.c
108
u_int i, lim, ls, ts;
sys/arch/sparc/sparc/cache.c
118
ts = CACHEINFO.c_totalsize;
sys/arch/sparc/sparc/cache.c
120
for (i = AC_CACHETAGS, lim = i + ts; i < lim; i += ls)
sys/arch/sparc/sparc/cache.c
209
int i, ls, ts;
sys/arch/sparc/sparc/cache.c
224
ts = CACHEINFO.c_totalsize;
sys/arch/sparc/sparc/cache.c
229
for (i = 0; i < ts; i += ls)
sys/arch/sparc/sparc/cache.c
259
int i, ls, ts;
sys/arch/sparc/sparc/cache.c
271
ts = CACHEINFO.ic_totalsize;
sys/arch/sparc/sparc/cache.c
273
for (i = 0; i < ts; i += ls)
sys/arch/sparc/sparc/cache.c
277
ts = CACHEINFO.dc_totalsize;
sys/arch/sparc/sparc/cache.c
279
for (i = 0; i < ts; i += ls)
sys/arch/sparc/sparc/cache.c
290
int i, ls, ts;
sys/arch/sparc/sparc/cache.c
306
ts = CACHEINFO.c_totalsize;
sys/arch/sparc/sparc/cache.c
308
for (i = 0; i < ts; i += ls)
sys/arch/sparc/sparc/cache.c
322
int i, ls, ts;
sys/arch/sparc/sparc/cache.c
336
ts = CACHEINFO.ic_totalsize;
sys/arch/sparc/sparc/cache.c
338
for (i = 0; i < ts; i += ls)
sys/arch/sparc/sparc/cache.c
342
ts = CACHEINFO.dc_totalsize;
sys/arch/sparc/sparc/cache.c
344
for (i = 0; i < ts; i += ls)
sys/arch/sparc64/sparc64/db_trace.c
539
struct trapstate *ts;
sys/arch/sparc64/sparc64/db_trace.c
543
ts = &DDB_REGS->db_ts[0];
sys/arch/sparc64/sparc64/db_trace.c
547
i+1, (long)ts[i].tt, (u_long)ts[i].tstate,
sys/arch/sparc64/sparc64/db_trace.c
548
(void*)(u_long)ts[i].tpc, (void*)(u_long)ts[i].tnpc);
sys/arch/usermode/usermode/thunk.c
286
struct timespec ts;
sys/arch/usermode/usermode/thunk.c
289
error = clock_gettime(CLOCK_MONOTONIC, &ts);
sys/arch/usermode/usermode/thunk.c
295
return (unsigned int)(ts.tv_nsec % 1000000000ULL);
sys/arch/x86/acpi/acpi_cpu_md.c
948
struct acpicpu_tstate *ts;
sys/arch/x86/acpi/acpi_cpu_md.c
956
ts = &sc->sc_tstate[i];
sys/arch/x86/acpi/acpi_cpu_md.c
958
if (ts->ts_percent == 0)
sys/arch/x86/acpi/acpi_cpu_md.c
961
if (val == ts->ts_status) {
sys/arch/x86/acpi/acpi_cpu_md.c
962
*percent = ts->ts_percent;
sys/arch/x86/acpi/acpi_cpu_md.c
971
acpicpu_md_tstate_set(struct acpicpu_tstate *ts)
sys/arch/x86/acpi/acpi_cpu_md.c
976
val = ts->ts_control;
sys/arch/x86/acpi/acpi_cpu_md.c
981
if (ts->ts_status == 0) {
sys/arch/x86/acpi/acpi_cpu_md.c
982
DELAY(ts->ts_latency);
sys/arch/x86/acpi/acpi_cpu_md.c
990
if (val == ts->ts_status)
sys/arch/x86/acpi/acpi_cpu_md.c
993
DELAY(ts->ts_latency);
sys/arch/x86/x86/x86_tlb.c
362
volatile pmap_tlb_packet_t *tp, *ts;
sys/arch/x86/x86/x86_tlb.c
410
ts = (void *)roundup2((uintptr_t)stackbuf, COHERENCY_UNIT);
sys/arch/x86/x86/x86_tlb.c
411
*ts = *tp;
sys/arch/x86/x86/x86_tlb.c
412
KASSERT(TP_GET_DONE(ts) == 0);
sys/arch/x86/x86/x86_tlb.c
414
__UNVOLATILE(ts)) != NULL) {
sys/arch/x86/x86/x86_tlb.c
415
KASSERT(atomic_load_relaxed(&pmap_tlb_packet) != ts);
sys/arch/x86/x86/x86_tlb.c
447
KASSERT(memcmp(__UNVOLATILE(ts), __UNVOLATILE(tp),
sys/arch/x86/x86/x86_tlb.c
448
sizeof(*ts)) == 0);
sys/arch/x86/x86/x86_tlb.c
458
pmap_tlb_processpacket(ts, target);
sys/arch/x86/x86/x86_tlb.c
479
pmap_tlb_invalidate(ts);
sys/arch/x86/x86/x86_tlb.c
488
while (TP_GET_DONE(ts) == 0) {
sys/arch/xen/xen/xen_clock.c
1065
struct timespec ts;
sys/arch/xen/xen/xen_clock.c
1067
xen_wallclock_time(&ts);
sys/arch/xen/xen/xen_clock.c
1068
TIMESPEC_TO_TIMEVAL(tvp, &ts);
sys/compat/common/kern_50.c
68
struct timespec ts, *tsp;
sys/compat/common/kern_50.c
72
if (SCARG(uap, ts) == NULL)
sys/compat/common/kern_50.c
75
error = copyin(SCARG(uap, ts), &ts50, sizeof(ts50));
sys/compat/common/kern_50.c
78
timespec50_to_timespec(&ts50, &ts);
sys/compat/common/kern_50.c
79
tsp = &ts;
sys/compat/common/kern_select_50.c
111
struct timespec ats, *ts = NULL;
sys/compat/common/kern_select_50.c
125
ts = &ats;
sys/compat/common/kern_select_50.c
129
SCARG(uap, ou), SCARG(uap, ex), ts, NULL);
sys/compat/common/kern_select_50.c
145
struct timespec ats, *ts = NULL;
sys/compat/common/kern_select_50.c
149
if (SCARG(uap, ts)) {
sys/compat/common/kern_select_50.c
150
error = copyin(SCARG(uap, ts), &ats50, sizeof(ats50));
sys/compat/common/kern_select_50.c
154
ts = &ats;
sys/compat/common/kern_select_50.c
164
SCARG(uap, ou), SCARG(uap, ex), ts, mask);
sys/compat/common/kern_select_50.c
177
struct timespec ats, *ts = NULL;
sys/compat/common/kern_select_50.c
182
if (SCARG(uap, ts)) {
sys/compat/common/kern_select_50.c
183
error = copyin(SCARG(uap, ts), &ats50, sizeof(ats50));
sys/compat/common/kern_select_50.c
187
ts = &ats;
sys/compat/common/kern_select_50.c
196
return pollcommon(retval, SCARG(uap, fds), SCARG(uap, nfds), ts, mask);
sys/compat/common/kern_time_50.c
356
struct timespec ts;
sys/compat/common/kern_time_50.c
370
timespec50_to_timespec(&ts50, &ts);
sys/compat/common/kern_time_50.c
376
error = aio_suspend1(l, list, nent, SCARG(uap, timeout) ? &ts : NULL);
sys/compat/common/kern_time_50.c
398
struct timespec ts, *tsp;
sys/compat/common/kern_time_50.c
406
timespec50_to_timespec(&ts50, &ts);
sys/compat/common/kern_time_50.c
407
tsp = &ts;
sys/compat/common/kern_time_50.c
431
struct timespec ts, *tsp;
sys/compat/common/kern_time_50.c
442
timespec50_to_timespec(&ts50, &ts);
sys/compat/common/kern_time_50.c
443
tsp = &ts;
sys/compat/common/kern_time_60.c
66
struct timespec ts, *tsp;
sys/compat/common/kern_time_60.c
68
if (SCARG(uap, ts) == NULL)
sys/compat/common/kern_time_60.c
71
error = copyin(SCARG(uap, ts), &ts, sizeof(ts));
sys/compat/common/kern_time_60.c
74
tsp = &ts;
sys/compat/common/vfs_syscalls_43.c
112
ots->tv_sec = ts->tv_sec;
sys/compat/common/vfs_syscalls_43.c
113
ots->tv_nsec = ts->tv_nsec;
sys/compat/common/vfs_syscalls_43.c
96
cvttimespec(struct timespec50 *ots, const struct timespec *ts)
sys/compat/common/vfs_syscalls_43.c
99
if (ts->tv_sec > INT_MAX) {
sys/compat/linux/arch/alpha/linux_osf1.c
396
struct timespec ats, *ts = NULL;
sys/compat/linux/arch/alpha/linux_osf1.c
407
ts = &ats;
sys/compat/linux/arch/alpha/linux_osf1.c
411
SCARG(uap, ou), SCARG(uap, ex), ts, NULL);
sys/compat/linux/common/linux_misc.c
1118
struct timespec ts0, *ts = NULL;
sys/compat/linux/common/linux_misc.c
1128
ts = &ts0;
sys/compat/linux/common/linux_misc.c
1140
ts, sigmask);
sys/compat/linux/common/linux_misc.c
1648
struct timespec *tsp = NULL, ts[2];
sys/compat/linux/common/linux_misc.c
1654
linux_to_native_timespec(&ts[0], <s[0]);
sys/compat/linux/common/linux_misc.c
1655
linux_to_native_timespec(&ts[1], <s[1]);
sys/compat/linux/common/linux_misc.c
1656
tsp = ts;
sys/compat/linux/common/linux_misc.c
1676
struct timespec ts, *tsp = NULL;
sys/compat/linux/common/linux_misc.c
1692
linux_to_native_timespec(&ts, <s);
sys/compat/linux/common/linux_misc.c
1693
tsp = &ts;
sys/compat/linux/common/linux_misc.c
1892
struct timespec ts, *tsp;
sys/compat/linux/common/linux_misc.c
1903
linux_to_native_timespec(&ts, timeout);
sys/compat/linux/common/linux_misc.c
1904
tsp = &ts;
sys/compat/linux/common/linux_misc.c
958
struct timespec ts0, ts1, uts, *ts = NULL;
sys/compat/linux/common/linux_misc.c
985
ts = &uts;
sys/compat/linux/common/linux_misc.c
989
error = selcommon(retval, nfds, readfds, writefds, exceptfds, ts, NULL);
sys/compat/linux/common/linux_mqueue.c
129
struct timespec ts, *tsp;
sys/compat/linux/common/linux_mqueue.c
137
linux_to_native_timespec(&ts, <s);
sys/compat/linux/common/linux_mqueue.c
138
tsp = &ts;
sys/compat/linux/common/linux_mqueue.c
160
struct timespec ts, *tsp;
sys/compat/linux/common/linux_mqueue.c
169
linux_to_native_timespec(&ts, <s);
sys/compat/linux/common/linux_mqueue.c
170
tsp = &ts;
sys/compat/linux/common/linux_socket.c
1912
struct timespec ts = {0}, now;
sys/compat/linux/common/linux_socket.c
1919
ts.tv_sec = lts.tv_sec;
sys/compat/linux/common/linux_socket.c
1920
ts.tv_nsec = lts.tv_nsec;
sys/compat/linux/common/linux_socket.c
1922
timespecadd(&now, &ts, &ts);
sys/compat/linux/common/linux_socket.c
1995
timespecsub(&now, &ts, &now);
sys/compat/linux/common/linux_time.c
223
struct timespec ts;
sys/compat/linux/common/linux_time.c
230
error = clock_gettime1(id, &ts);
sys/compat/linux/common/linux_time.c
234
native_to_linux_timespec(<s, &ts);
sys/compat/linux/common/linux_time.c
245
struct timespec ts;
sys/compat/linux/common/linux_time.c
258
linux_to_native_timespec(&ts, <s);
sys/compat/linux/common/linux_time.c
260
return clock_settime1(l->l_proc, id, &ts, true);
sys/compat/linux/common/linux_time.c
270
struct timespec ts;
sys/compat/linux/common/linux_time.c
279
error = clock_getres1(nwhich, &ts);
sys/compat/linux/common/linux_time.c
283
native_to_linux_timespec(<s, &ts);
sys/compat/linux32/common/linux32_misc.c
246
struct timespec ts, *tsp = NULL;
sys/compat/linux32/common/linux32_misc.c
262
linux32_to_native_timespec(&ts, <s);
sys/compat/linux32/common/linux32_misc.c
263
tsp = &ts;
sys/compat/linux32/common/linux32_misc.c
330
struct timespec ts0, *ts = NULL;
sys/compat/linux32/common/linux32_misc.c
340
ts = &ts0;
sys/compat/linux32/common/linux32_misc.c
352
ts, sigmask);
sys/compat/linux32/common/linux32_time.c
198
struct timespec ts;
sys/compat/linux32/common/linux32_time.c
205
ts.tv_sec = (long)tt32;
sys/compat/linux32/common/linux32_time.c
206
ts.tv_nsec = 0;
sys/compat/linux32/common/linux32_time.c
208
return settime(l->l_proc, &ts);
sys/compat/linux32/common/linux32_time.c
313
struct timespec ts;
sys/compat/linux32/common/linux32_time.c
324
linux32_to_native_timespec(&ts, <s);
sys/compat/linux32/common/linux32_time.c
325
return clock_settime1(l->l_proc, id, &ts, true);
sys/compat/linux32/common/linux32_time.c
338
struct timespec ts;
sys/compat/linux32/common/linux32_time.c
345
error = clock_gettime1(id, &ts);
sys/compat/linux32/common/linux32_time.c
349
native_to_linux32_timespec(<s, &ts);
sys/compat/linux32/common/linux32_time.c
363
struct timespec ts;
sys/compat/linux32/common/linux32_time.c
370
error = clock_getres1(id, &ts);
sys/compat/linux32/common/linux32_time.c
374
native_to_linux32_timespec(<s, &ts);
sys/compat/linux32/common/linux32_unistd.c
155
struct timespec ts0, ts1, uts, *ts = NULL;
sys/compat/linux32/common/linux32_unistd.c
186
ts = &uts;
sys/compat/linux32/common/linux32_unistd.c
190
error = selcommon(retval, nfds, readfds, writefds, exceptfds, ts, NULL);
sys/compat/linux32/common/linux32_unistd.c
508
struct timespec *tsp = NULL, ts[2];
sys/compat/linux32/common/linux32_unistd.c
514
linux32_to_native_timespec(&ts[0], <s[0]);
sys/compat/linux32/common/linux32_unistd.c
515
linux32_to_native_timespec(&ts[1], <s[1]);
sys/compat/linux32/common/linux32_unistd.c
516
tsp = ts;
sys/compat/netbsd32/netbsd32_compat_50.c
132
struct timespec ats, *ts = NULL;
sys/compat/netbsd32/netbsd32_compat_50.c
144
ts = &ats;
sys/compat/netbsd32/netbsd32_compat_50.c
148
SCARG_P32(uap, ou), SCARG_P32(uap, ex), ts, NULL);
sys/compat/netbsd32/netbsd32_compat_50.c
365
struct timespec ts;
sys/compat/netbsd32/netbsd32_compat_50.c
368
error = clock_getres1(SCARG(uap, clock_id), &ts);
sys/compat/netbsd32/netbsd32_compat_50.c
373
netbsd32_from_timespec50(&ts, &ts32);
sys/compat/netbsd32/netbsd32_compat_50.c
479
struct timespec *ts = dst;
sys/compat/netbsd32/netbsd32_compat_50.c
487
netbsd32_to_timespec50(&ts32, ts);
sys/compat/netbsd32/netbsd32_compat_50.c
494
const struct timespec *ts = src;
sys/compat/netbsd32/netbsd32_compat_50.c
497
netbsd32_from_timespec50(ts, &ts32);
sys/compat/netbsd32/netbsd32_compat_50.c
557
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_compat_50.c
561
if (SCARG_P32(uap, ts) == NULL)
sys/compat/netbsd32/netbsd32_compat_50.c
564
error = copyin(SCARG_P32(uap, ts), &ts32, sizeof ts32);
sys/compat/netbsd32/netbsd32_compat_50.c
567
netbsd32_to_timespec50(&ts32, &ts);
sys/compat/netbsd32/netbsd32_compat_50.c
568
tsp = &ts;
sys/compat/netbsd32/netbsd32_compat_50.c
634
struct timespec ats, *ts = NULL;
sys/compat/netbsd32/netbsd32_compat_50.c
637
if (SCARG_P32(uap, ts)) {
sys/compat/netbsd32/netbsd32_compat_50.c
638
error = copyin(SCARG_P32(uap, ts), &ts32, sizeof(ts32));
sys/compat/netbsd32/netbsd32_compat_50.c
642
ts = &ats;
sys/compat/netbsd32/netbsd32_compat_50.c
652
SCARG_P32(uap, ou), SCARG_P32(uap, ex), ts, mask);
sys/compat/netbsd32/netbsd32_compat_50.c
667
struct timespec ats, *ts = NULL;
sys/compat/netbsd32/netbsd32_compat_50.c
670
if (SCARG_P32(uap, ts)) {
sys/compat/netbsd32/netbsd32_compat_50.c
671
error = copyin(SCARG_P32(uap, ts), &ts32, sizeof(ts32));
sys/compat/netbsd32/netbsd32_compat_50.c
675
ts = &ats;
sys/compat/netbsd32/netbsd32_compat_50.c
685
SCARG(uap, nfds), ts, mask);
sys/compat/netbsd32/netbsd32_compat_60.c
58
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_compat_60.c
62
if (SCARG_P32(uap, ts) == NULL)
sys/compat/netbsd32/netbsd32_compat_60.c
65
error = copyin(SCARG_P32(uap, ts), &ts32, sizeof ts32);
sys/compat/netbsd32/netbsd32_compat_60.c
68
netbsd32_to_timespec(&ts32, &ts);
sys/compat/netbsd32/netbsd32_compat_60.c
69
tsp = &ts;
sys/compat/netbsd32/netbsd32_epoll.c
114
netbsd32_to_timespec(&ts32, &ts);
sys/compat/netbsd32/netbsd32_epoll.c
115
tsp = &ts;
sys/compat/netbsd32/netbsd32_epoll.c
99
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_fs.c
1333
struct timespec ts[2], *tsp;
sys/compat/netbsd32/netbsd32_fs.c
1337
error = get_utimens32(SCARG_P32(uap, tptr), ts, &tsp);
sys/compat/netbsd32/netbsd32_fs.c
1431
struct timespec ts[2], *tsp;
sys/compat/netbsd32/netbsd32_fs.c
1435
error = get_utimens32(SCARG_P32(uap, tptr), ts, &tsp);
sys/compat/netbsd32/netbsd32_fs.c
354
get_utimens32(const netbsd32_timespecp_t *tptr, struct timespec *ts,
sys/compat/netbsd32/netbsd32_fs.c
368
netbsd32_to_timespec(&ts32[0], &ts[0]);
sys/compat/netbsd32/netbsd32_fs.c
369
netbsd32_to_timespec(&ts32[1], &ts[1]);
sys/compat/netbsd32/netbsd32_fs.c
371
*tsp = ts;
sys/compat/netbsd32/netbsd32_futex.c
63
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_futex.c
73
netbsd32_to_timespec(&ts32, &ts);
sys/compat/netbsd32/netbsd32_futex.c
74
tsp = &ts;
sys/compat/netbsd32/netbsd32_lwp.c
171
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_lwp.c
176
if (SCARG_P32(uap, ts) == NULL)
sys/compat/netbsd32/netbsd32_lwp.c
179
error = copyin(SCARG_P32(uap, ts), &ts32, sizeof ts32);
sys/compat/netbsd32/netbsd32_lwp.c
182
netbsd32_to_timespec(&ts32, &ts);
sys/compat/netbsd32/netbsd32_lwp.c
183
tsp = &ts;
sys/compat/netbsd32/netbsd32_lwp.c
193
if (SCARG_P32(uap, ts) != NULL && (SCARG(uap, flags) & TIMER_ABSTIME) == 0) {
sys/compat/netbsd32/netbsd32_lwp.c
194
netbsd32_from_timespec(&ts, &ts32);
sys/compat/netbsd32/netbsd32_lwp.c
195
(void)copyout(&ts32, SCARG_P32(uap, ts), sizeof(ts32));
sys/compat/netbsd32/netbsd32_mqueue.c
269
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_mqueue.c
279
netbsd32_to_timespec(&ts32, &ts);
sys/compat/netbsd32/netbsd32_mqueue.c
280
tsp = &ts;
sys/compat/netbsd32/netbsd32_mqueue.c
300
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_mqueue.c
311
netbsd32_to_timespec(&ts32, &ts);
sys/compat/netbsd32/netbsd32_mqueue.c
312
tsp = &ts;
sys/compat/netbsd32/netbsd32_mqueue.c
339
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_mqueue.c
349
netbsd32_to_timespec50(&ts32, &ts);
sys/compat/netbsd32/netbsd32_mqueue.c
350
tsp = &ts;
sys/compat/netbsd32/netbsd32_mqueue.c
371
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_mqueue.c
382
netbsd32_to_timespec50(&ts32, &ts);
sys/compat/netbsd32/netbsd32_mqueue.c
383
tsp = &ts;
sys/compat/netbsd32/netbsd32_select.c
101
if (SCARG_P32(uap, ts)) {
sys/compat/netbsd32/netbsd32_select.c
102
error = copyin(SCARG_P32(uap, ts), &ts32, sizeof(ts32));
sys/compat/netbsd32/netbsd32_select.c
106
ts = &ats;
sys/compat/netbsd32/netbsd32_select.c
116
SCARG_P32(uap, ou), SCARG_P32(uap, ex), ts, mask);
sys/compat/netbsd32/netbsd32_select.c
131
struct timespec ats, *ts = NULL;
sys/compat/netbsd32/netbsd32_select.c
134
if (SCARG_P32(uap, ts)) {
sys/compat/netbsd32/netbsd32_select.c
135
error = copyin(SCARG_P32(uap, ts), &ts32, sizeof(ts32));
sys/compat/netbsd32/netbsd32_select.c
139
ts = &ats;
sys/compat/netbsd32/netbsd32_select.c
149
SCARG(uap, nfds), ts, mask);
sys/compat/netbsd32/netbsd32_select.c
65
struct timespec ats, *ts = NULL;
sys/compat/netbsd32/netbsd32_select.c
77
ts = &ats;
sys/compat/netbsd32/netbsd32_select.c
81
SCARG_P32(uap, ou), SCARG_P32(uap, ex), ts, NULL);
sys/compat/netbsd32/netbsd32_select.c
98
struct timespec ats, *ts = NULL;
sys/compat/netbsd32/netbsd32_sem.c
169
struct timespec ts;
sys/compat/netbsd32/netbsd32_sem.c
178
netbsd32_to_timespec(&ts32, &ts);
sys/compat/netbsd32/netbsd32_sem.c
180
if (ts.tv_sec < 0 || ts.tv_nsec < 0 || ts.tv_nsec >= 1000000000)
sys/compat/netbsd32/netbsd32_sem.c
183
error = do_ksem_wait(l, id, false, &ts);
sys/compat/netbsd32/netbsd32_signal.c
584
struct timespec *ts = dst;
sys/compat/netbsd32/netbsd32_signal.c
592
netbsd32_to_timespec(&ts32, ts);
sys/compat/netbsd32/netbsd32_signal.c
599
const struct timespec *ts = src;
sys/compat/netbsd32/netbsd32_signal.c
602
netbsd32_from_timespec(ts, &ts32);
sys/compat/netbsd32/netbsd32_socket.c
274
struct timespec ts, now;
sys/compat/netbsd32/netbsd32_socket.c
279
ts.tv_sec = 0; // XXX: gcc
sys/compat/netbsd32/netbsd32_socket.c
280
ts.tv_nsec = 0;
sys/compat/netbsd32/netbsd32_socket.c
286
netbsd32_to_timespec(&ts32, &ts);
sys/compat/netbsd32/netbsd32_socket.c
287
timespecadd(&now, &ts, &ts);
sys/compat/netbsd32/netbsd32_socket.c
351
timespecsub(&now, &ts, &now);
sys/compat/netbsd32/netbsd32_syscallargs.h
1723
syscallarg(netbsd32_timespec50p_t) ts;
sys/compat/netbsd32/netbsd32_syscallargs.h
1980
syscallarg(netbsd32_timespec50p_t) ts;
sys/compat/netbsd32/netbsd32_syscallargs.h
1988
syscallarg(netbsd32_timespec50p_t) ts;
sys/compat/netbsd32/netbsd32_syscallargs.h
2316
syscallarg(const netbsd32_timespecp_t) ts;
sys/compat/netbsd32/netbsd32_syscallargs.h
2338
syscallarg(const netbsd32_timespecp_t) ts;
sys/compat/netbsd32/netbsd32_syscallargs.h
2346
syscallarg(const netbsd32_timespecp_t) ts;
sys/compat/netbsd32/netbsd32_syscallargs.h
2636
syscallarg(netbsd32_timespecp_t) ts;
sys/compat/netbsd32/netbsd32_sysctl.c
81
struct timespec ts;
sys/compat/netbsd32/netbsd32_sysctl.c
83
getnanoboottime(&ts);
sys/compat/netbsd32/netbsd32_sysctl.c
84
netbsd32_from_timespec(&ts, &bt32);
sys/compat/netbsd32/netbsd32_systrace_args.c
2340
uarg[0] = (intptr_t) SCARG(p, ts).i32; /* netbsd32_timespec50p_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
2673
uarg[4] = (intptr_t) SCARG(p, ts).i32; /* netbsd32_timespec50p_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
2683
uarg[2] = (intptr_t) SCARG(p, ts).i32; /* netbsd32_timespec50p_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
3105
uarg[0] = (intptr_t) SCARG(p, ts).i32; /* const netbsd32_timespecp_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
3131
uarg[4] = (intptr_t) SCARG(p, ts).i32; /* const netbsd32_timespecp_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
3141
uarg[2] = (intptr_t) SCARG(p, ts).i32; /* const netbsd32_timespecp_t */
sys/compat/netbsd32/netbsd32_systrace_args.c
3509
uarg[2] = (intptr_t) SCARG(p, ts).i32; /* netbsd32_timespecp_t */
sys/compat/netbsd32/netbsd32_time.c
342
struct timespec ts;
sys/compat/netbsd32/netbsd32_time.c
345
error = clock_getres1(SCARG(uap, clock_id), &ts);
sys/compat/netbsd32/netbsd32_time.c
350
netbsd32_from_timespec(&ts, &ts32);
sys/compat/sunos/sunos_ioctl.c
377
stios2stio(struct sunos_termios *ts, struct sunos_termio *t)
sys/compat/sunos/sunos_ioctl.c
381
t->c_iflag = ts->c_iflag;
sys/compat/sunos/sunos_ioctl.c
382
t->c_oflag = ts->c_oflag;
sys/compat/sunos/sunos_ioctl.c
383
t->c_cflag = ts->c_cflag;
sys/compat/sunos/sunos_ioctl.c
384
t->c_lflag = ts->c_lflag;
sys/compat/sunos/sunos_ioctl.c
385
t->c_line = ts->c_line;
sys/compat/sunos/sunos_ioctl.c
386
memcpy(t->c_cc, ts->c_cc, 8);
sys/compat/sunos/sunos_ioctl.c
390
stio2stios(struct sunos_termio *t, struct sunos_termios *ts)
sys/compat/sunos/sunos_ioctl.c
393
memset(ts, 0, sizeof(*ts));
sys/compat/sunos/sunos_ioctl.c
394
ts->c_iflag = t->c_iflag;
sys/compat/sunos/sunos_ioctl.c
395
ts->c_oflag = t->c_oflag;
sys/compat/sunos/sunos_ioctl.c
396
ts->c_cflag = t->c_cflag;
sys/compat/sunos/sunos_ioctl.c
397
ts->c_lflag = t->c_lflag;
sys/compat/sunos/sunos_ioctl.c
398
ts->c_line = t->c_line;
sys/compat/sunos/sunos_ioctl.c
399
memcpy(ts->c_cc, t->c_cc, 8); /* don't touch the upper fields! */
sys/compat/sunos32/sunos32_ioctl.c
413
stios2stio(struct sunos_termios *ts, struct sunos_termio *t)
sys/compat/sunos32/sunos32_ioctl.c
417
t->c_iflag = ts->c_iflag;
sys/compat/sunos32/sunos32_ioctl.c
418
t->c_oflag = ts->c_oflag;
sys/compat/sunos32/sunos32_ioctl.c
419
t->c_cflag = ts->c_cflag;
sys/compat/sunos32/sunos32_ioctl.c
420
t->c_lflag = ts->c_lflag;
sys/compat/sunos32/sunos32_ioctl.c
421
t->c_line = ts->c_line;
sys/compat/sunos32/sunos32_ioctl.c
422
memcpy(t->c_cc, ts->c_cc, 8);
sys/compat/sunos32/sunos32_ioctl.c
426
stio2stios(struct sunos_termio *t, struct sunos_termios *ts)
sys/compat/sunos32/sunos32_ioctl.c
429
memset(ts, 0, sizeof(*ts));
sys/compat/sunos32/sunos32_ioctl.c
430
ts->c_iflag = t->c_iflag;
sys/compat/sunos32/sunos32_ioctl.c
431
ts->c_oflag = t->c_oflag;
sys/compat/sunos32/sunos32_ioctl.c
432
ts->c_cflag = t->c_cflag;
sys/compat/sunos32/sunos32_ioctl.c
433
ts->c_lflag = t->c_lflag;
sys/compat/sunos32/sunos32_ioctl.c
434
ts->c_line = t->c_line;
sys/compat/sunos32/sunos32_ioctl.c
435
memcpy(ts->c_cc, t->c_cc, 8); /* don't touch the upper fields! */
sys/compat/sys/time_types.h
100
timespec_to_timespec50(const struct timespec *ts, struct timespec50 *ts50)
sys/compat/sys/time_types.h
103
ts50->tv_sec = (int32_t)ts->tv_sec;
sys/compat/sys/time_types.h
104
ts50->tv_nsec = ts->tv_nsec;
sys/compat/sys/time_types.h
108
itimerval50_to_itimerval(const struct itimerval50 *ts50, struct itimerval *ts)
sys/compat/sys/time_types.h
110
memset(ts, 0, sizeof(*ts));
sys/compat/sys/time_types.h
111
timeval50_to_timeval(&ts50->it_interval, &ts->it_interval);
sys/compat/sys/time_types.h
112
timeval50_to_timeval(&ts50->it_value, &ts->it_value);
sys/compat/sys/time_types.h
116
itimerval_to_itimerval50(const struct itimerval *ts, struct itimerval50 *ts50)
sys/compat/sys/time_types.h
119
timeval_to_timeval50(&ts->it_interval, &ts50->it_interval);
sys/compat/sys/time_types.h
120
timeval_to_timeval50(&ts->it_value, &ts50->it_value);
sys/compat/sys/time_types.h
125
struct itimerspec *ts)
sys/compat/sys/time_types.h
127
memset(ts, 0, sizeof(*ts));
sys/compat/sys/time_types.h
128
timespec50_to_timespec(&ts50->it_interval, &ts->it_interval);
sys/compat/sys/time_types.h
129
timespec50_to_timespec(&ts50->it_value, &ts->it_value);
sys/compat/sys/time_types.h
133
itimerspec_to_itimerspec50(const struct itimerspec *ts,
sys/compat/sys/time_types.h
137
timespec_to_timespec50(&ts->it_interval, &ts50->it_interval);
sys/compat/sys/time_types.h
138
timespec_to_timespec50(&ts->it_value, &ts50->it_value);
sys/compat/sys/time_types.h
76
timeval50_to_timeval(const struct timeval50 *ts50, struct timeval *ts)
sys/compat/sys/time_types.h
78
memset(ts, 0, sizeof(*ts));
sys/compat/sys/time_types.h
79
ts->tv_sec = ts50->tv_sec;
sys/compat/sys/time_types.h
80
ts->tv_usec = (suseconds_t)ts50->tv_usec;
sys/compat/sys/time_types.h
84
timeval_to_timeval50(const struct timeval *ts, struct timeval50 *ts50)
sys/compat/sys/time_types.h
87
ts50->tv_sec = (long)ts->tv_sec;
sys/compat/sys/time_types.h
88
ts50->tv_usec = ts->tv_usec;
sys/compat/sys/time_types.h
92
timespec50_to_timespec(const struct timespec50 *ts50, struct timespec *ts)
sys/compat/sys/time_types.h
94
memset(ts, 0, sizeof(*ts));
sys/compat/sys/time_types.h
95
ts->tv_sec = ts50->tv_sec;
sys/compat/sys/time_types.h
96
ts->tv_nsec = ts50->tv_nsec;
sys/compat/ultrix/ultrix_ioctl.c
424
stios2stio(struct emul_termios *ts, struct emul_termio *t)
sys/compat/ultrix/ultrix_ioctl.c
428
t->c_iflag = ts->c_iflag;
sys/compat/ultrix/ultrix_ioctl.c
429
t->c_oflag = ts->c_oflag;
sys/compat/ultrix/ultrix_ioctl.c
430
t->c_cflag = ts->c_cflag;
sys/compat/ultrix/ultrix_ioctl.c
431
t->c_lflag = ts->c_lflag;
sys/compat/ultrix/ultrix_ioctl.c
432
t->c_line = ts->c_line;
sys/compat/ultrix/ultrix_ioctl.c
433
memcpy(t->c_cc, ts->c_cc, TERMIO_NCC);
sys/compat/ultrix/ultrix_ioctl.c
440
stio2stios(struct emul_termio *t, struct emul_termios *ts)
sys/compat/ultrix/ultrix_ioctl.c
443
memset(ts, 0, sizeof(*t));
sys/compat/ultrix/ultrix_ioctl.c
444
ts->c_iflag = t->c_iflag;
sys/compat/ultrix/ultrix_ioctl.c
445
ts->c_oflag = t->c_oflag;
sys/compat/ultrix/ultrix_ioctl.c
446
ts->c_cflag = t->c_cflag;
sys/compat/ultrix/ultrix_ioctl.c
447
ts->c_lflag = t->c_lflag;
sys/compat/ultrix/ultrix_ioctl.c
448
ts->c_line = t->c_line;
sys/compat/ultrix/ultrix_ioctl.c
451
memcpy(ts->c_cc, t->c_cc, TERMIO_NCC);
sys/ddb/db_output.c
263
db_print_timespec(struct timespec *ts)
sys/ddb/db_output.c
266
db_printf("%" PRIu64 ".%09ld", (uint64_t)ts->tv_sec, ts->tv_nsec);
sys/dev/acpi/acpi_cpu.c
643
struct acpicpu_tstate *ts;
sys/dev/acpi/acpi_cpu.c
685
ts = &sc->sc_tstate[i];
sys/dev/acpi/acpi_cpu.c
687
if (ts->ts_percent == 0)
sys/dev/acpi/acpi_cpu.c
690
(void)snprintf(ts->ts_name, sizeof(ts->ts_name),
sys/dev/acpi/acpi_cpu.c
691
"T%u (%u %%)", i, ts->ts_percent);
sys/dev/acpi/acpi_cpu.c
693
evcnt_attach_dynamic(&ts->ts_evcnt, EVCNT_TYPE_MISC,
sys/dev/acpi/acpi_cpu.c
694
NULL, device_xname(sc->sc_dev), ts->ts_name);
sys/dev/acpi/acpi_cpu.c
704
struct acpicpu_tstate *ts;
sys/dev/acpi/acpi_cpu.c
725
ts = &sc->sc_tstate[i];
sys/dev/acpi/acpi_cpu.c
727
if (ts->ts_percent != 0)
sys/dev/acpi/acpi_cpu.c
728
evcnt_detach(&ts->ts_evcnt);
sys/dev/acpi/acpi_cpu.c
739
struct acpicpu_tstate *ts;
sys/dev/acpi/acpi_cpu.c
781
ts = &sc->sc_tstate[i];
sys/dev/acpi/acpi_cpu.c
783
if (ts->ts_percent == 0)
sys/dev/acpi/acpi_cpu.c
789
ts->ts_latency, ts->ts_power, ts->ts_percent);
sys/dev/acpi/acpi_cpu_tstate.c
221
struct acpicpu_tstate *ts;
sys/dev/acpi/acpi_cpu_tstate.c
257
ts = &sc->sc_tstate[i];
sys/dev/acpi/acpi_cpu_tstate.c
258
rv = acpicpu_tstate_tss_add(ts, &obj->Package.Elements[i]);
sys/dev/acpi/acpi_cpu_tstate.c
261
ts->ts_percent = 0;
sys/dev/acpi/acpi_cpu_tstate.c
267
if (ts->ts_percent >= sc->sc_tstate[j].ts_percent) {
sys/dev/acpi/acpi_cpu_tstate.c
268
ts->ts_percent = 0;
sys/dev/acpi/acpi_cpu_tstate.c
273
if (ts->ts_percent != 0)
sys/dev/acpi/acpi_cpu_tstate.c
301
acpicpu_tstate_tss_add(struct acpicpu_tstate *ts, ACPI_OBJECT *obj)
sys/dev/acpi/acpi_cpu_tstate.c
327
p = &ts->ts_percent;
sys/dev/acpi/acpi_cpu_tstate.c
340
if (ts->ts_percent < 6 || ts->ts_percent > 100)
sys/dev/acpi/acpi_cpu_tstate.c
343
if (ts->ts_latency == 0 || ts->ts_latency > 1000)
sys/dev/acpi/acpi_cpu_tstate.c
344
ts->ts_latency = 1;
sys/dev/acpi/acpi_cpu_tstate.c
661
struct acpicpu_tstate *ts = NULL;
sys/dev/acpi/acpi_cpu_tstate.c
715
ts = &sc->sc_tstate[i];
sys/dev/acpi/acpi_cpu_tstate.c
720
if (ts == NULL) {
sys/dev/acpi/acpi_cpu_tstate.c
725
*percent = ts->ts_percent;
sys/dev/acpi/acpi_cpu_tstate.c
762
struct acpicpu_tstate *ts = NULL;
sys/dev/acpi/acpi_cpu_tstate.c
799
ts = &sc->sc_tstate[i];
sys/dev/acpi/acpi_cpu_tstate.c
806
if (__predict_false(ts == NULL)) {
sys/dev/acpi/acpi_cpu_tstate.c
815
rv = acpicpu_md_tstate_set(ts);
sys/dev/acpi/acpi_cpu_tstate.c
825
acpicpu_writereg(&sc->sc_tstate_control, ts->ts_control);
sys/dev/acpi/acpi_cpu_tstate.c
832
if (ts->ts_status == 0)
sys/dev/acpi/acpi_cpu_tstate.c
839
if (val == ts->ts_status)
sys/dev/acpi/acpi_cpu_tstate.c
842
DELAY(ts->ts_latency);
sys/dev/acpi/acpi_cpu_tstate.c
858
ts->ts_evcnt.ev_count++;
sys/dev/clockctl.c
236
struct timespec ts;
sys/dev/clockctl.c
238
error = copyin(args->tp, &ts, sizeof ts);
sys/dev/clockctl.c
241
error = clock_settime1(l->l_proc, args->clock_id, &ts, false);
sys/dev/dtv/dtv_buffer.c
107
if (ts->ts_pidfilter[TS_PID(tspkt)]) {
sys/dev/dtv/dtv_buffer.c
99
struct dtv_ts *ts = &sc->sc_ts;
sys/dev/dtv/dtv_device.c
208
struct dtv_ts *ts;
sys/dev/dtv/dtv_device.c
215
ts = &sc->sc_ts;
sys/dev/dtv/dtv_device.c
224
memset(ts->ts_pidfilter, 0, sizeof(ts->ts_pidfilter));
sys/dev/fss.c
701
struct timespec ts;
sys/dev/fss.c
758
error = VFS_SNAPSHOT(sc->sc_mount, sc->sc_bs_vp, &ts);
sys/dev/fss.c
759
TIMESPEC_TO_TIMEVAL(&sc->sc_time, &ts);
sys/dev/ic/isp.c
5193
uint8_t ts = completion_status & 0xff;
sys/dev/ic/isp.c
5200
} else if (ts != RQCS_ABORTED && ts != RQCS_RESET_OCCURRED) {
sys/dev/ic/isp.c
5201
isp_prt(isp, ISP_LOGERR, "cannot find handle 0x%x (status 0x%x)", sp->req_handle, ts);
sys/dev/ic/mvsatareg.h
316
uint32_t ts; /* CPRB Time Stamp */
sys/dev/ic/rtw.c
1194
struct rtw_txsoft *ts;
sys/dev/ic/rtw.c
1199
ts = &tsb->tsb_desc[i];
sys/dev/ic/rtw.c
1200
ts->ts_mbuf = NULL;
sys/dev/ic/rtw.c
1201
SIMPLEQ_INSERT_TAIL(&tsb->tsb_freeq, ts, ts_q);
sys/dev/ic/rtw.c
1672
struct rtw_txsoft *ts)
sys/dev/ic/rtw.c
1677
m = ts->ts_mbuf;
sys/dev/ic/rtw.c
1678
ni = ts->ts_ni;
sys/dev/ic/rtw.c
1681
ts->ts_mbuf = NULL;
sys/dev/ic/rtw.c
1682
ts->ts_ni = NULL;
sys/dev/ic/rtw.c
1684
bus_dmamap_sync(dmat, ts->ts_dmamap, 0, ts->ts_dmamap->dm_mapsize,
sys/dev/ic/rtw.c
1686
bus_dmamap_unload(dmat, ts->ts_dmamap);
sys/dev/ic/rtw.c
1695
struct rtw_txsoft *ts;
sys/dev/ic/rtw.c
1697
while ((ts = SIMPLEQ_FIRST(&tsb->tsb_dirtyq)) != NULL) {
sys/dev/ic/rtw.c
1698
rtw_txsoft_release(dmat, ic, ts);
sys/dev/ic/rtw.c
1700
SIMPLEQ_INSERT_TAIL(&tsb->tsb_freeq, ts, ts_q);
sys/dev/ic/rtw.c
1707
struct rtw_txsoft *ts, int ndesc)
sys/dev/ic/rtw.c
1715
rtw_txsoft_release(sc->sc_dmat, &sc->sc_ic, ts);
sys/dev/ic/rtw.c
1719
tdn = &tdb->tdb_desc[ts->ts_last];
sys/dev/ic/rtw.c
1738
device_xname(sc->sc_dev), ts, ts->ts_first, ts->ts_last,
sys/dev/ic/rtw.c
1772
struct rtw_txsoft *ts;
sys/dev/ic/rtw.c
1778
while ((ts = SIMPLEQ_FIRST(&tsb->tsb_dirtyq)) != NULL) {
sys/dev/ic/rtw.c
1781
if (ts->ts_first == rtw_txring_next(&sc->sc_regs, tdb))
sys/dev/ic/rtw.c
1784
ndesc = 1 + ts->ts_last - ts->ts_first;
sys/dev/ic/rtw.c
1785
if (ts->ts_last < ts->ts_first)
sys/dev/ic/rtw.c
1790
rtw_txdescs_sync(tdb, ts->ts_first, ndesc,
sys/dev/ic/rtw.c
1798
for (next = ts->ts_first; ;
sys/dev/ic/rtw.c
1805
if (next == ts->ts_last)
sys/dev/ic/rtw.c
1808
rtw_txdescs_sync(tdb, ts->ts_first, ndesc,
sys/dev/ic/rtw.c
1816
} else if ((tdb->tdb_desc[ts->ts_last].td_stat &
sys/dev/ic/rtw.c
1818
rtw_txdescs_sync(tdb, ts->ts_last, 1,
sys/dev/ic/rtw.c
1825
rtw_collect_txpkt(sc, tdb, ts, ndesc);
sys/dev/ic/rtw.c
1827
SIMPLEQ_INSERT_TAIL(&tsb->tsb_freeq, ts, ts_q);
sys/dev/ic/rtw.c
1831
if (ts == NULL)
sys/dev/ic/rtw.c
3290
struct rtw_txsoft *ts, struct rtw_txdesc_blk *tdb, int desc)
sys/dev/ic/rtw.c
3295
device_xname(sc->sc_dev), ts, action, desc,
sys/dev/ic/rtw.c
3316
struct rtw_txsoft *ts;
sys/dev/ic/rtw.c
3350
ts = SIMPLEQ_FIRST(&tsb->tsb_freeq);
sys/dev/ic/rtw.c
3352
dmamap = ts->ts_dmamap;
sys/dev/ic/rtw.c
3427
rate, &ts->ts_d0, &ts->ts_dn, &npkt,
sys/dev/ic/rtw.c
3435
d0 = &ts->ts_d0;
sys/dev/ic/rtw.c
3447
ts->ts_first = tdb->tdb_next;
sys/dev/ic/rtw.c
3449
rtw_txdescs_sync(tdb, ts->ts_first, dmamap->dm_nsegs,
sys/dev/ic/rtw.c
3452
KASSERT(ts->ts_first < tdb->tdb_ndesc);
sys/dev/ic/rtw.c
3465
for (i = 0, lastdesc = desc = ts->ts_first;
sys/dev/ic/rtw.c
3483
rtw_print_txdesc(sc, "load", ts, tdb, desc);
sys/dev/ic/rtw.c
3489
ts->ts_ni = ni;
sys/dev/ic/rtw.c
3491
ts->ts_mbuf = m0;
sys/dev/ic/rtw.c
3492
ts->ts_last = lastdesc;
sys/dev/ic/rtw.c
3493
tdb->tdb_desc[ts->ts_last].td_ctl0 |= htole32(RTW_TXCTL0_LS);
sys/dev/ic/rtw.c
3494
tdb->tdb_desc[ts->ts_first].td_ctl0 |=
sys/dev/ic/rtw.c
3498
rtw_print_txdesc(sc, "FS on", ts, tdb, ts->ts_first);
sys/dev/ic/rtw.c
3499
rtw_print_txdesc(sc, "LS on", ts, tdb, ts->ts_last);
sys/dev/ic/rtw.c
3505
rtw_txdescs_sync(tdb, ts->ts_first, dmamap->dm_nsegs,
sys/dev/ic/rtw.c
3508
tdb->tdb_desc[ts->ts_first].td_ctl0 |=
sys/dev/ic/rtw.c
3512
rtw_print_txdesc(sc, "OWN on", ts, tdb, ts->ts_first);
sys/dev/ic/rtw.c
3515
rtw_txdescs_sync(tdb, ts->ts_first, 1,
sys/dev/ic/rtw.c
3519
SIMPLEQ_INSERT_TAIL(&tsb->tsb_dirtyq, ts, ts_q);
sys/dev/ic/vga_raster.c
1014
vga_ts_write(vh, mode, regs->ts[1] | VGA_TS_MODE_BLANK);
sys/dev/ic/vga_raster.c
1016
_vga_ts_write(vh, i, regs->ts[i]);
sys/dev/ic/vga_raster.c
149
u_int8_t ts[VGA_TS_NREGS]; /* Time sequencer */
sys/dev/ic/vga_raster.c
912
regs->ts[0] = 0x02;
sys/dev/ic/vga_raster.c
914
regs->ts[0] = 0x00;
sys/dev/ic/vga_raster.c
916
regs->ts[1] = 0x09;
sys/dev/ic/vga_raster.c
918
regs->ts[1] = 0x01;
sys/dev/ic/vga_raster.c
919
regs->ts[2] = 0x0f;
sys/dev/ic/vga_raster.c
920
regs->ts[3] = 0x00;
sys/dev/ic/vga_raster.c
922
regs->ts[4] = 0x06;
sys/dev/ic/vga_raster.c
924
regs->ts[4] = 0x0e;
sys/dev/lockstat.c
272
struct timespec ts;
sys/dev/lockstat.c
285
getnanotime(&ts);
sys/dev/lockstat.c
319
timespecsub(&ts, &lockstat_stime, &ld->ld_time);
sys/dev/pci/bktr/bktr_core.c
886
struct timeval *ts;
sys/dev/pci/bktr/bktr_core.c
890
ts =(struct timeval *)bktr->bigbuf +
sys/dev/pci/bktr/bktr_core.c
895
microtime(ts);
sys/dev/pci/if_mcx.c
6858
struct timespec ts;
sys/dev/pci/if_mcx.c
6860
nanouptime(&ts);
sys/dev/pci/if_mcx.c
6862
return ((uint64_t)ts.tv_sec * 1000000000 + (uint64_t)ts.tv_nsec);
sys/dev/pci/if_vmx.c
2064
struct vmxnet3_txq_shared *ts;
sys/dev/pci/if_vmx.c
2093
ts = sc->vmx_queue[0].vxq_txqueue.vxtxq_ts;
sys/dev/pci/if_vmx.c
2094
if (ts->stopped != 0)
sys/dev/pci/if_vmx.c
2095
device_printf(dev, "Tx queue error %#x\n", ts->error);
sys/dev/qbus/ts.c
127
volatile struct ts *sc_vts; /* Memory address of ts struct */
sys/dev/qbus/ts.c
128
struct ts *sc_bts; /* Unibus address of ts struct */
sys/dev/qbus/ts.c
168
CFATTACH_DECL_NEW(ts, sizeof(struct ts_softc),
sys/dev/qbus/ts.c
326
sc->sc_ui.ui_size = sizeof(struct ts);
sys/dev/vmt/vmt_subr.c
468
struct timespec ts;
sys/dev/vmt/vmt_subr.c
477
ts.tv_sec = ((uint64_t)(
sys/dev/vmt/vmt_subr.c
480
ts.tv_nsec = __SHIFTOUT(frame.ebx, VM_REG_WORD_MASK) * 1000;
sys/dev/vmt/vmt_subr.c
481
tc_setclock(&ts);
sys/dist/pf/net/pf_osfp.c
234
u_int32_t ts;
sys/dist/pf/net/pf_osfp.c
235
memcpy(&ts, &optp[2], sizeof(ts));
sys/dist/pf/net/pf_osfp.c
236
if (ts == 0)
sys/fs/filecorefs/filecore_utils.c
227
struct timespec ts;
sys/fs/filecorefs/filecore_utils.c
232
ts.tv_sec = cs / 100;
sys/fs/filecorefs/filecore_utils.c
233
ts.tv_nsec = (cs % 100) * 10000000;
sys/fs/filecorefs/filecore_utils.c
234
return ts;
sys/fs/msdosfs/msdosfs_vnops.c
1432
struct timespec *ts = NULL, tsb;
sys/fs/msdosfs/msdosfs_vnops.c
1440
mod = ts = &tsb;
sys/fs/msdosfs/msdosfs_vnops.c
1449
acc = ts == NULL ?
sys/fs/msdosfs/msdosfs_vnops.c
1450
(getnanotime(&tsb), ts = &tsb) : ts;
sys/fs/msdosfs/msdosfs_vnops.c
1456
cre = ts == NULL ?
sys/fs/msdosfs/msdosfs_vnops.c
1457
(getnanotime(&tsb), ts = &tsb) : ts;
sys/fs/nfs/client/nfs_clvnops.c
3304
struct timespec ts;
sys/fs/nfs/client/nfs_clvnops.c
3308
vfs_timestamp(&ts);
sys/fs/nfs/client/nfs_clvnops.c
3310
np->n_atim = ts;
sys/fs/nfs/client/nfs_clvnops.c
3312
np->n_mtim = ts;
sys/fs/nfs/common/nfs_commonport.c
256
struct timespec *ts)
sys/fs/nfs/common/nfs_commonport.c
261
if (ts) {
sys/fs/nfs/common/nfs_commonport.c
262
timeo = hz * ts->tv_sec;
sys/fs/nfs/common/nfs_commonport.c
263
nsecval = (u_int64_t)ts->tv_nsec;
sys/fs/nfs/common/nfs_commonsubs.c
3913
struct timespec ts;
sys/fs/nfs/common/nfs_commonsubs.c
3918
ts.tv_sec = 0;
sys/fs/nfs/common/nfs_commonsubs.c
3919
ts.tv_nsec = 0;
sys/fs/nfs/common/nfs_commonsubs.c
3921
PZERO - 1, "nfsndlck", &ts);
sys/fs/nilfs/nilfs_vnops.c
766
nilfs_ctime_to_timespec(struct timespec *ts, uint64_t ctime)
sys/fs/nilfs/nilfs_vnops.c
768
ts->tv_sec = ctime;
sys/fs/nilfs/nilfs_vnops.c
769
ts->tv_nsec = 0;
sys/fs/ptyfs/ptyfs_vnops.c
800
struct timespec ts;
sys/fs/ptyfs/ptyfs_vnops.c
810
getnanotime(&ts);
sys/fs/ptyfs/ptyfs_vnops.c
811
(void)ptyfs_update(vp, &ts, &ts, 0);
sys/fs/ptyfs/ptyfs_vnops.c
834
struct timespec ts;
sys/fs/ptyfs/ptyfs_vnops.c
840
getnanotime(&ts);
sys/fs/ptyfs/ptyfs_vnops.c
841
(void)ptyfs_update(vp, &ts, &ts, 0);
sys/fs/puffs/puffs_node.c
280
struct timespec ts;
sys/fs/puffs/puffs_node.c
285
nanotime(&ts);
sys/fs/puffs/puffs_node.c
288
pn->pn_mc_atime = ts;
sys/fs/puffs/puffs_node.c
292
pn->pn_mc_ctime = ts;
sys/fs/puffs/puffs_node.c
296
pn->pn_mc_mtime = ts;
sys/fs/puffs/puffs_vfsops.c
803
puffs_vfsop_snapshot(struct mount *mp, struct vnode *vp, struct timespec *ts)
sys/fs/puffs/puffs_vnops.c
427
#define TTL_TO_TIMEOUT(ts) \
sys/fs/puffs/puffs_vnops.c
428
(getticks() + (ts->tv_sec * hz) + (ts->tv_nsec * hz / 1000000000))
sys/fs/puffs/puffs_vnops.c
429
#define TTL_VALID(ts) \
sys/fs/puffs/puffs_vnops.c
430
((ts != NULL) && !((ts->tv_sec == 0) && (ts->tv_nsec == 0)))
sys/kern/init_sysctl.c
805
struct timespec ts;
sys/kern/init_sysctl.c
807
getnanoboottime(&ts);
sys/kern/init_sysctl.c
809
node.sysctl_data = &ts;
sys/kern/init_sysctl.c
819
struct timespec ts, delta;
sys/kern/init_sysctl.c
838
nanotime(&ts);
sys/kern/init_sysctl.c
841
timespecadd(&ts, &delta, &ts);
sys/kern/init_sysctl.c
843
return (settime(l->l_proc, &ts));
sys/kern/kern_event.c
1312
struct timespec ts;
sys/kern/kern_event.c
1325
ts.tv_sec = kev->data;
sys/kern/kern_event.c
1326
ts.tv_nsec = 0;
sys/kern/kern_event.c
1330
ts.tv_sec = kev->data / 1000;
sys/kern/kern_event.c
1331
ts.tv_nsec = (kev->data % 1000) * 1000000;
sys/kern/kern_event.c
1335
ts.tv_sec = kev->data / 1000000;
sys/kern/kern_event.c
1336
ts.tv_nsec = (kev->data % 1000000) * 1000;
sys/kern/kern_event.c
1340
ts.tv_sec = kev->data / 1000000000;
sys/kern/kern_event.c
1341
ts.tv_nsec = kev->data % 1000000000;
sys/kern/kern_event.c
1349
struct timespec deadline = ts;
sys/kern/kern_event.c
1357
nanotime(&ts);
sys/kern/kern_event.c
1363
if (timespeccmp(&deadline, &ts, <=)) {
sys/kern/kern_event.c
1369
timespecsub(&deadline, &ts, &ts);
sys/kern/kern_event.c
1375
tticks = tstohz(&ts);
sys/kern/kern_event.c
1819
struct timespec ts;
sys/kern/kern_event.c
1836
error = (*keops->keo_fetch_timeout)(timeout, &ts, sizeof(ts));
sys/kern/kern_event.c
1839
timeout = &ts;
sys/kern/kern_ksyms.c
336
Elf_Sym *sym, *nsym, ts;
sys/kern/kern_ksyms.c
448
if (kheapsort(nsym, n, sizeof(Elf_Sym), addsymtab_compar, &ts) != 0)
sys/kern/kern_ktrace.c
1319
struct timespec ts;
sys/kern/kern_ktrace.c
1326
ts = kth->ktr_time;
sys/kern/kern_ktrace.c
1328
kth->ktr_otv.tv_sec = ts.tv_sec;
sys/kern/kern_ktrace.c
1329
kth->ktr_otv.tv_usec = ts.tv_nsec / 1000;
sys/kern/kern_ktrace.c
1335
ts = kth->ktr_time;
sys/kern/kern_ktrace.c
1338
kth->ktr_ots.tv_sec = ts.tv_sec;
sys/kern/kern_ktrace.c
1339
kth->ktr_ots.tv_nsec = ts.tv_nsec;
sys/kern/kern_ktrace.c
885
struct timespec *ts;
sys/kern/kern_ktrace.c
894
ts = &l->l_ktrcsw;
sys/kern/kern_ktrace.c
897
kte->kte_kth.ktr_otv.tv_sec = ts->tv_sec;
sys/kern/kern_ktrace.c
898
kte->kte_kth.ktr_otv.tv_usec = ts->tv_nsec / 1000;
sys/kern/kern_ktrace.c
901
kte->kte_kth.ktr_ots.tv_sec = ts->tv_sec;
sys/kern/kern_ktrace.c
902
kte->kte_kth.ktr_ots.tv_nsec = ts->tv_nsec;
sys/kern/kern_ktrace.c
905
kte->kte_kth.ktr_ts.tv_sec = ts->tv_sec;
sys/kern/kern_ktrace.c
906
kte->kte_kth.ktr_ts.tv_nsec = ts->tv_nsec;
sys/kern/kern_mutex.c
453
turnstile_t *ts;
sys/kern/kern_mutex.c
575
ts = turnstile_lookup(mtx);
sys/kern/kern_mutex.c
691
turnstile_block(ts, TS_WRITER_Q, mtx, &mutex_syncobj);
sys/kern/kern_mutex.c
718
turnstile_t *ts;
sys/kern/kern_mutex.c
779
ts = turnstile_lookup(mtx);
sys/kern/kern_mutex.c
781
if (ts == NULL) {
sys/kern/kern_mutex.c
786
turnstile_wakeup(ts, TS_WRITER_Q,
sys/kern/kern_mutex.c
787
TS_WAITERS(ts, TS_WRITER_Q), NULL);
sys/kern/kern_mutex.c
802
turnstile_t *ts;
sys/kern/kern_mutex.c
804
ts = turnstile_lookup(mtx);
sys/kern/kern_mutex.c
805
if (ts == NULL) {
sys/kern/kern_mutex.c
810
turnstile_wakeup(ts, TS_WRITER_Q, TS_WAITERS(ts, TS_WRITER_Q), NULL);
sys/kern/kern_rwlock.c
286
turnstile_t *ts;
sys/kern/kern_rwlock.c
380
ts = turnstile_lookup(rw);
sys/kern/kern_rwlock.c
402
turnstile_block(ts, queue, rw, &rw_syncobj);
sys/kern/kern_rwlock.c
440
turnstile_t *ts;
sys/kern/kern_rwlock.c
486
ts = turnstile_lookup(rw);
sys/kern/kern_rwlock.c
488
RW_ASSERT(rw, ts != NULL);
sys/kern/kern_rwlock.c
491
wcnt = TS_WAITERS(ts, TS_WRITER_Q);
sys/kern/kern_rwlock.c
492
rcnt = TS_WAITERS(ts, TS_READER_Q);
sys/kern/kern_rwlock.c
511
l = TS_FIRST(ts, TS_WRITER_Q);
sys/kern/kern_rwlock.c
517
turnstile_wakeup(ts, TS_WRITER_Q, 1, l);
sys/kern/kern_rwlock.c
523
turnstile_wakeup(ts, TS_WRITER_Q, wcnt, NULL);
sys/kern/kern_rwlock.c
540
turnstile_wakeup(ts, TS_READER_Q, rcnt, NULL);
sys/kern/kern_rwlock.c
597
turnstile_t *ts;
sys/kern/kern_rwlock.c
634
ts = turnstile_lookup(rw);
sys/kern/kern_rwlock.c
635
RW_ASSERT(rw, ts != NULL);
sys/kern/kern_rwlock.c
637
rcnt = TS_WAITERS(ts, TS_READER_Q);
sys/kern/kern_rwlock.c
638
wcnt = TS_WAITERS(ts, TS_WRITER_Q);
sys/kern/kern_rwlock.c
672
turnstile_wakeup(ts, TS_READER_Q, rcnt, NULL);
sys/kern/kern_tc.c
1205
struct timespec ts, *tsp, *osp;
sys/kern/kern_tc.c
1362
bintime2timespec(&bt, &ts);
sys/kern/kern_tc.c
1371
*tsp = ts;
sys/kern/kern_tc.c
1461
bintime2timespec(&bt, &ts);
sys/kern/kern_tc.c
1469
df = timespec2ns(&ts);
sys/kern/kern_tc.c
1481
hardpps(tsp, timespec2ns(&ts));
sys/kern/kern_tc.c
880
tc_setclock(const struct timespec *ts)
sys/kern/kern_tc.c
888
timespec2bintime(ts, &bt);
sys/kern/kern_tc.c
904
(long long)ts->tv_sec, ts->tv_nsec);
sys/kern/kern_time.c
1119
struct timespec ts;
sys/kern/kern_time.c
1131
timespecclear(&ts);
sys/kern/kern_time.c
1136
timespecadd(&ts, &itn->it_time.it_value, &ts);
sys/kern/kern_time.c
1141
timespecadd(&ts, &itn->it_time.it_value,
sys/kern/kern_time.c
1145
timespecclear(&ts);
sys/kern/kern_time.c
1150
timespecadd(&ts, &itn->it_time.it_value, &ts);
sys/kern/kern_time.c
1155
timespecadd(&ts, &itn->it_time.it_value,
sys/kern/kern_time.c
147
time_wraps(struct timespec *ts, struct timespec *delta)
sys/kern/kern_time.c
159
if ((ts->tv_sec > LLONG_MAX - 365*24*60*60) ||
sys/kern/kern_time.c
212
settime1(struct proc *p, const struct timespec *ts, bool check_kauth)
sys/kern/kern_time.c
220
if (ts->tv_sec < 0 || ts->tv_sec > (1LL << 36))
sys/kern/kern_time.c
224
timespecsub(ts, &now, &delta);
sys/kern/kern_time.c
227
KAUTH_SYSTEM_TIME, KAUTH_REQ_SYSTEM_TIME_SYSTEM, __UNCONST(ts),
sys/kern/kern_time.c
238
tc_setclock(ts);
sys/kern/kern_time.c
263
settime(struct proc *p, struct timespec *ts)
sys/kern/kern_time.c
265
return settime1(p, ts, true);
sys/kern/kern_time.c
337
struct timespec ts;
sys/kern/kern_time.c
340
if ((error = clock_getres1(SCARG(uap, clock_id), &ts)) != 0)
sys/kern/kern_time.c
344
error = copyout(&ts, SCARG(uap, tp), sizeof(ts));
sys/kern/kern_time.c
350
clock_getres1(clockid_t clock_id, struct timespec *ts)
sys/kern/kern_time.c
358
ts->tv_sec = 0;
sys/kern/kern_time.c
360
ts->tv_nsec = 1;
sys/kern/kern_time.c
362
ts->tv_nsec = 1000000000 / tc_getfrequency();
sys/kern/kern_time.c
570
struct timespec ts;
sys/kern/kern_time.c
595
TIMEVAL_TO_TIMESPEC(utv, &ts);
sys/kern/kern_time.c
596
return settime1(l->l_proc, &ts, check_kauth);
sys/kern/kern_todr.c
219
struct timespec ts;
sys/kern/kern_todr.c
306
ts.tv_sec = tv.tv_sec;
sys/kern/kern_todr.c
307
ts.tv_nsec = tv.tv_usec * 1000;
sys/kern/kern_todr.c
308
tc_setclock(&ts);
sys/kern/kern_turnstile.c
116
turnstile_ctor(turnstile_t *ts)
sys/kern/kern_turnstile.c
119
memset(ts, 0, sizeof(*ts));
sys/kern/kern_turnstile.c
120
sleepq_init(&ts->ts_sleepq[TS_READER_Q]);
sys/kern/kern_turnstile.c
121
sleepq_init(&ts->ts_sleepq[TS_WRITER_Q]);
sys/kern/kern_turnstile.c
130
turnstile_remove(turnstile_t *ts, lwp_t *l, int q)
sys/kern/kern_turnstile.c
134
KASSERT(l->l_ts == ts);
sys/kern/kern_turnstile.c
140
if ((nts = ts->ts_free) != NULL) {
sys/kern/kern_turnstile.c
141
KASSERT(TS_ALL_WAITERS(ts) > 1);
sys/kern/kern_turnstile.c
143
ts->ts_free = nts->ts_free;
sys/kern/kern_turnstile.c
150
KASSERT(TS_ALL_WAITERS(ts) == 1);
sys/kern/kern_turnstile.c
151
LIST_REMOVE(ts, ts_chain);
sys/kern/kern_turnstile.c
154
ts->ts_waiters[q]--;
sys/kern/kern_turnstile.c
155
sleepq_remove(&ts->ts_sleepq[q], l, true);
sys/kern/kern_turnstile.c
167
turnstile_t *ts;
sys/kern/kern_turnstile.c
175
LIST_FOREACH(ts, tc, ts_chain)
sys/kern/kern_turnstile.c
176
if (ts->ts_obj == obj)
sys/kern/kern_turnstile.c
177
return (ts);
sys/kern/kern_turnstile.c
225
turnstile_t *ts;
sys/kern/kern_turnstile.c
283
ts = l->l_ts;
sys/kern/kern_turnstile.c
284
KASSERT(ts->ts_inheritor == owner || ts->ts_inheritor == NULL);
sys/kern/kern_turnstile.c
285
if (ts->ts_inheritor == NULL) {
sys/kern/kern_turnstile.c
286
ts->ts_inheritor = owner;
sys/kern/kern_turnstile.c
287
ts->ts_eprio = prio;
sys/kern/kern_turnstile.c
288
SLIST_INSERT_HEAD(&owner->l_pi_lenders, ts, ts_pichain);
sys/kern/kern_turnstile.c
290
} else if (prio > ts->ts_eprio) {
sys/kern/kern_turnstile.c
291
ts->ts_eprio = prio;
sys/kern/kern_turnstile.c
312
turnstile_unlendpri(turnstile_t *ts)
sys/kern/kern_turnstile.c
321
KASSERT(ts->ts_inheritor != NULL);
sys/kern/kern_turnstile.c
322
ts->ts_inheritor = NULL;
sys/kern/kern_turnstile.c
341
KASSERT(lwp_eprio(l) >= ts->ts_eprio);
sys/kern/kern_turnstile.c
343
if (iter == ts) {
sys/kern/kern_turnstile.c
370
turnstile_block(turnstile_t *ts, int q, wchan_t obj, syncobj_t *sobj)
sys/kern/kern_turnstile.c
389
if (ts == NULL) {
sys/kern/kern_turnstile.c
394
ts = l->l_ts;
sys/kern/kern_turnstile.c
395
KASSERT(TS_ALL_WAITERS(ts) == 0);
sys/kern/kern_turnstile.c
396
KASSERT(LIST_EMPTY(&ts->ts_sleepq[TS_READER_Q]));
sys/kern/kern_turnstile.c
397
KASSERT(LIST_EMPTY(&ts->ts_sleepq[TS_WRITER_Q]));
sys/kern/kern_turnstile.c
398
ts->ts_obj = obj;
sys/kern/kern_turnstile.c
399
ts->ts_inheritor = NULL;
sys/kern/kern_turnstile.c
400
LIST_INSERT_HEAD(tc, ts, ts_chain);
sys/kern/kern_turnstile.c
409
ots->ts_free = ts->ts_free;
sys/kern/kern_turnstile.c
410
ts->ts_free = ots;
sys/kern/kern_turnstile.c
411
l->l_ts = ts;
sys/kern/kern_turnstile.c
413
KASSERT(ts->ts_obj == obj);
sys/kern/kern_turnstile.c
414
KASSERT(TS_ALL_WAITERS(ts) != 0);
sys/kern/kern_turnstile.c
415
KASSERT(!LIST_EMPTY(&ts->ts_sleepq[TS_READER_Q]) ||
sys/kern/kern_turnstile.c
416
!LIST_EMPTY(&ts->ts_sleepq[TS_WRITER_Q]));
sys/kern/kern_turnstile.c
419
sq = &ts->ts_sleepq[q];
sys/kern/kern_turnstile.c
420
ts->ts_waiters[q]++;
sys/kern/kern_turnstile.c
444
turnstile_wakeup(turnstile_t *ts, int q, int count, lwp_t *nl)
sys/kern/kern_turnstile.c
451
hash = TS_HASH(ts->ts_obj);
sys/kern/kern_turnstile.c
453
sq = &ts->ts_sleepq[q];
sys/kern/kern_turnstile.c
457
KASSERT(count <= TS_WAITERS(ts, q));
sys/kern/kern_turnstile.c
459
KASSERT(ts->ts_inheritor == curlwp || ts->ts_inheritor == NULL);
sys/kern/kern_turnstile.c
465
if (ts->ts_inheritor != NULL) {
sys/kern/kern_turnstile.c
466
turnstile_unlendpri(ts);
sys/kern/kern_turnstile.c
478
turnstile_remove(ts, nl, q);
sys/kern/kern_turnstile.c
483
turnstile_remove(ts, l, q);
sys/kern/kern_turnstile.c
528
turnstile_t *ts;
sys/kern/kern_turnstile.c
537
LIST_FOREACH(ts, tc, ts_chain)
sys/kern/kern_turnstile.c
538
if (ts->ts_obj == obj)
sys/kern/kern_turnstile.c
541
if (ts == NULL) {
sys/kern/kern_turnstile.c
546
rsq = &ts->ts_sleepq[TS_READER_Q];
sys/kern/kern_turnstile.c
547
wsq = &ts->ts_sleepq[TS_WRITER_Q];
sys/kern/kern_turnstile.c
550
(*pr)("=> %d waiting readers:", TS_WAITERS(ts, TS_READER_Q));
sys/kern/kern_turnstile.c
556
(*pr)("=> %d waiting writers:", TS_WAITERS(ts, TS_WRITER_Q));
sys/kern/subr_prf.c
456
struct timespec ts;
sys/kern/subr_prf.c
469
getnanouptime(&ts);
sys/kern/subr_prf.c
471
for (n = prec, fsec = ts.tv_nsec; n < 8; n++)
sys/kern/subr_prf.c
477
(intmax_t)ts.tv_sec, prec, fsec);
sys/kern/subr_time.c
101
gettimeleft(struct timespec *ts, struct timespec *sleepts)
sys/kern/subr_time.c
105
KASSERT(ts->tv_sec >= 0);
sys/kern/subr_time.c
115
if (timespeccmp(ts, &sleptts, <=)) { /* timed out */
sys/kern/subr_time.c
116
timespecclear(ts);
sys/kern/subr_time.c
119
timespecsub(ts, &sleptts, ts);
sys/kern/subr_time.c
121
return tstohz(ts);
sys/kern/subr_time.c
125
clock_timeleft(clockid_t clockid, struct timespec *ts, struct timespec *sleepts)
sys/kern/subr_time.c
130
timespecadd(ts, sleepts, ts);
sys/kern/subr_time.c
131
timespecsub(ts, &sleptts, ts);
sys/kern/subr_time.c
136
clock_gettime1(clockid_t clock_id, struct timespec *ts)
sys/kern/subr_time.c
165
TIMEVAL_TO_TIMESPEC(&cputime, ts);
sys/kern/subr_time.c
182
bintime2timespec(&tm, ts);
sys/kern/subr_time.c
188
nanotime(ts);
sys/kern/subr_time.c
191
nanouptime(ts);
sys/kern/subr_time.c
204
ts2timo(clockid_t clock_id, int flags, struct timespec *ts,
sys/kern/subr_time.c
210
if (ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000L)
sys/kern/subr_time.c
222
if (!timespecsubok(ts, &tsd))
sys/kern/subr_time.c
224
timespecsub(ts, &tsd, &tsd);
sys/kern/subr_time.c
225
ts = &tsd;
sys/kern/subr_time.c
228
error = itimespecfix(ts);
sys/kern/subr_time.c
232
if (ts->tv_sec == 0 && ts->tv_nsec == 0)
sys/kern/subr_time.c
235
*timo = tstohz(ts);
sys/kern/subr_time.c
69
struct timespec now, ts;
sys/kern/subr_time.c
71
ts = *tsp; /* Don't modify original tsp. */
sys/kern/subr_time.c
73
timespecsub(&ts, &now, &ts);
sys/kern/subr_time.c
74
return tstohz(&ts);
sys/kern/subr_time.c
80
struct timespec now, ts;
sys/kern/subr_time.c
82
ts = *tsp; /* Don't modify original tsp. */
sys/kern/subr_time.c
84
timespecsub(&ts, &now, &ts);
sys/kern/subr_time.c
85
return tstohz(&ts);
sys/kern/subr_time.c
89
inittimeleft(struct timespec *ts, struct timespec *sleepts)
sys/kern/subr_time.c
92
if (itimespecfix(ts)) {
sys/kern/subr_time.c
95
KASSERT(ts->tv_sec >= 0);
sys/kern/subr_time_arith.c
166
tstohz(const struct timespec *ts)
sys/kern/subr_time_arith.c
170
KASSERT(ts->tv_nsec >= 0);
sys/kern/subr_time_arith.c
171
KASSERT(ts->tv_nsec < 1000000000);
sys/kern/subr_time_arith.c
177
tv.tv_sec = ts->tv_sec;
sys/kern/subr_time_arith.c
178
tv.tv_usec = (ts->tv_nsec + 999)/1000;
sys/kern/subr_time_arith.c
210
itimespecfix(struct timespec *ts)
sys/kern/subr_time_arith.c
213
if (ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000)
sys/kern/subr_time_arith.c
215
if (ts->tv_sec < 0)
sys/kern/subr_time_arith.c
217
if (ts->tv_sec == 0 && ts->tv_nsec != 0 && ts->tv_nsec < tick * 1000)
sys/kern/subr_time_arith.c
218
ts->tv_nsec = tick * 1000;
sys/kern/subr_time_arith.c
453
timespec2nsok(const struct timespec *ts)
sys/kern/subr_time_arith.c
456
return ts->tv_sec < INT64_MAX/1000000000 ||
sys/kern/subr_time_arith.c
457
(ts->tv_sec == INT64_MAX/1000000000 &&
sys/kern/subr_time_arith.c
458
ts->tv_nsec <= INT64_MAX - (INT64_MAX/1000000000)*1000000000);
sys/kern/sys_aio.c
1910
struct timespec ts;
sys/kern/sys_aio.c
1924
error = copyin(SCARG(uap, timeout), &ts,
sys/kern/sys_aio.c
1925
sizeof(ts));
sys/kern/sys_aio.c
1937
&ts : NULL, AIOSP_SUSPEND_ANY);
sys/kern/sys_aio.c
531
struct timespec *ts, int flags)
sys/kern/sys_aio.c
538
if (ts) {
sys/kern/sys_aio.c
539
timo = tstohz(ts);
sys/kern/sys_aio.c
603
struct timespec *ts)
sys/kern/sys_aio.c
609
return aiosp_suspend(aiosp, aiocbp_list, nent, ts, AIOSP_SUSPEND_ANY);
sys/kern/sys_epoll.c
452
struct timespec ts, *tsp;
sys/kern/sys_epoll.c
461
error = copyin(SCARG(uap, timeout), &ts, sizeof(ts));
sys/kern/sys_epoll.c
465
tsp = &ts;
sys/kern/sys_futex.c
1219
struct timespec ts;
sys/kern/sys_futex.c
1238
error = clock_gettime1(clkid, &ts);
sys/kern/sys_futex.c
1241
timespecadd(&ts, timeout, &ts);
sys/kern/sys_futex.c
1242
deadline = &ts;
sys/kern/sys_futex.c
1744
struct timespec ts, *tsp;
sys/kern/sys_futex.c
1751
error = copyin(SCARG(uap, timeout), &ts, sizeof(ts));
sys/kern/sys_futex.c
1754
tsp = &ts;
sys/kern/sys_futex.c
953
struct timespec ts;
sys/kern/sys_futex.c
956
error = clock_gettime1(clkid, &ts);
sys/kern/sys_futex.c
961
if (timespeccmp(deadline, &ts, <=)) {
sys/kern/sys_futex.c
967
timespecsub(deadline, &ts, &ts);
sys/kern/sys_futex.c
977
MAX(1, tstohz(&ts)));
sys/kern/sys_lwp.c
516
lwp_park(clockid_t clock_id, int flags, struct timespec *ts)
sys/kern/sys_lwp.c
521
bool timeremain = !(flags & TIMER_ABSTIME) && ts;
sys/kern/sys_lwp.c
523
if (ts != NULL) {
sys/kern/sys_lwp.c
524
if ((error = ts2timo(clock_id, flags, ts, &timo,
sys/kern/sys_lwp.c
549
memset(ts, 0, sizeof(*ts));
sys/kern/sys_lwp.c
556
clock_timeleft(clock_id, ts, &start);
sys/kern/sys_lwp.c
579
struct timespec ts, *tsp;
sys/kern/sys_lwp.c
582
if (SCARG(uap, ts) == NULL)
sys/kern/sys_lwp.c
585
error = copyin(SCARG(uap, ts), &ts, sizeof(ts));
sys/kern/sys_lwp.c
588
tsp = &ts;
sys/kern/sys_lwp.c
598
if (SCARG(uap, ts) != NULL && (SCARG(uap, flags) & TIMER_ABSTIME) == 0)
sys/kern/sys_lwp.c
599
(void)copyout(tsp, SCARG(uap, ts), sizeof(*tsp));
sys/kern/sys_mqueue.c
631
struct timespec *ts, ssize_t *mlen)
sys/kern/sys_mqueue.c
660
if (ts) {
sys/kern/sys_mqueue.c
661
error = ts2timo(CLOCK_REALTIME, TIMER_ABSTIME, ts, &t,
sys/kern/sys_mqueue.c
758
struct timespec ts, *tsp;
sys/kern/sys_mqueue.c
764
error = copyin(SCARG(uap, abs_timeout), &ts, sizeof(ts));
sys/kern/sys_mqueue.c
767
tsp = &ts;
sys/kern/sys_mqueue.c
785
struct timespec *ts)
sys/kern/sys_mqueue.c
843
if (ts) {
sys/kern/sys_mqueue.c
844
error = ts2timo(CLOCK_REALTIME, TIMER_ABSTIME, ts, &t,
sys/kern/sys_mqueue.c
934
struct timespec ts, *tsp;
sys/kern/sys_mqueue.c
939
error = copyin(SCARG(uap, abs_timeout), &ts, sizeof(ts));
sys/kern/sys_mqueue.c
942
tsp = &ts;
sys/kern/sys_select.c
180
struct timespec ats, *ts = NULL;
sys/kern/sys_select.c
184
if (SCARG(uap, ts)) {
sys/kern/sys_select.c
185
error = copyin(SCARG(uap, ts), &ats, sizeof(ats));
sys/kern/sys_select.c
188
ts = &ats;
sys/kern/sys_select.c
198
SCARG(uap, ou), SCARG(uap, ex), ts, mask);
sys/kern/sys_select.c
213
struct timespec ats, *ts = NULL;
sys/kern/sys_select.c
225
ts = &ats;
sys/kern/sys_select.c
229
SCARG(uap, ou), SCARG(uap, ex), ts, NULL);
sys/kern/sys_select.c
237
struct timespec *ts, sigset_t *mask, register_t *retval)
sys/kern/sys_select.c
246
if (ts && inittimeleft(ts, &sleepts) == -1) {
sys/kern/sys_select.c
283
if (ts && (ts->tv_sec | ts->tv_nsec | direct_select) == 0) {
sys/kern/sys_select.c
299
if (ts && (timo = gettimeleft(ts, &sleepts)) <= 0)
sys/kern/sys_select.c
381
fd_set *u_ex, struct timespec *ts, sigset_t *mask)
sys/kern/sys_select.c
489
error = sel_do_scan(selop_select, bits, nd, ni, ts, mask, retval);
sys/kern/sys_select.c
581
struct timespec ats, *ts = NULL;
sys/kern/sys_select.c
586
ts = &ats;
sys/kern/sys_select.c
589
return pollcommon(retval, SCARG(uap, fds), SCARG(uap, nfds), ts, NULL);
sys/kern/sys_select.c
605
struct timespec ats, *ts = NULL;
sys/kern/sys_select.c
609
if (SCARG(uap, ts)) {
sys/kern/sys_select.c
610
error = copyin(SCARG(uap, ts), &ats, sizeof(ats));
sys/kern/sys_select.c
613
ts = &ats;
sys/kern/sys_select.c
622
return pollcommon(retval, SCARG(uap, fds), SCARG(uap, nfds), ts, mask);
sys/kern/sys_select.c
627
struct timespec *ts, sigset_t *mask)
sys/kern/sys_select.c
669
error = sel_do_scan(selop_poll, fds, nfds, ni, ts, mask, retval);
sys/kern/sys_sig.c
746
struct timespec ts, tsstart, tsnow;
sys/kern/sys_sig.c
756
error = (*fetchts)(SCARG(uap, timeout), &ts, sizeof(ts));
sys/kern/sys_sig.c
760
if ((error = itimespecfix(&ts)) != 0)
sys/kern/sys_sig.c
763
timo = tstohz(&ts);
sys/kern/sys_sig.c
765
if (ts.tv_sec == 0 && ts.tv_nsec == 0)
sys/kern/sys_sig.c
873
timespecsub(&ts, &tsnow, &ts);
sys/kern/sys_sig.c
875
if (ts.tv_sec < 0)
sys/kern/sys_sig.c
879
int error1 = (*storets)(&ts, SCARG(uap, timeout),
sys/kern/sys_sig.c
880
sizeof(ts));
sys/kern/systrace_args.c
2401
uarg[0] = (intptr_t) SCARG(p, ts); /* const struct timespec50 * */
sys/kern/systrace_args.c
2776
uarg[4] = (intptr_t) SCARG(p, ts); /* const struct timespec50 * */
sys/kern/systrace_args.c
2786
uarg[2] = (intptr_t) SCARG(p, ts); /* const struct timespec50 * */
sys/kern/systrace_args.c
3279
uarg[0] = (intptr_t) SCARG(p, ts); /* const struct timespec * */
sys/kern/systrace_args.c
3305
uarg[4] = (intptr_t) SCARG(p, ts); /* const struct timespec * */
sys/kern/systrace_args.c
3315
uarg[2] = (intptr_t) SCARG(p, ts); /* const struct timespec * */
sys/kern/systrace_args.c
3692
uarg[2] = (intptr_t) SCARG(p, ts); /* struct timespec * */
sys/kern/uipc_sem.c
987
struct timespec ts;
sys/kern/uipc_sem.c
990
error = copyin(SCARG(uap, abstime), &ts, sizeof(ts));
sys/kern/uipc_sem.c
994
if (ts.tv_sec < 0 || ts.tv_nsec < 0 || ts.tv_nsec >= 1000000000)
sys/kern/uipc_sem.c
997
error = do_ksem_wait(l, SCARG(uap, id), false, &ts);
sys/kern/uipc_syscalls.c
1012
struct timespec ts, now;
sys/kern/uipc_syscalls.c
1016
if ((error = copyin(SCARG(uap, timeout), &ts, sizeof(ts))) != 0)
sys/kern/uipc_syscalls.c
1018
if (ts.tv_nsec < 0 || ts.tv_nsec >= 1000000000L)
sys/kern/uipc_syscalls.c
1021
if (timespecaddok(&now, &ts)) {
sys/kern/uipc_syscalls.c
1022
timespecadd(&now, &ts, &ts);
sys/kern/uipc_syscalls.c
1024
ts.tv_sec = __type_max(time_t);
sys/kern/uipc_syscalls.c
1025
ts.tv_nsec = 999999999L;
sys/kern/uipc_syscalls.c
1093
if (timespeccmp(&ts, &now, <))
sys/kern/vfs_syscalls.c
4060
struct timespec ts[2];
sys/kern/vfs_syscalls.c
4077
nanotime(&ts[0]);
sys/kern/vfs_syscalls.c
4078
ts[1] = ts[0];
sys/kern/vfs_syscalls.c
4082
error = copyin(tptr, ts, sizeof (ts));
sys/kern/vfs_syscalls.c
4086
ts[0] = tptr[0];
sys/kern/vfs_syscalls.c
4087
ts[1] = tptr[1];
sys/kern/vfs_syscalls.c
4091
if (ts[0].tv_nsec == UTIME_NOW) {
sys/kern/vfs_syscalls.c
4092
nanotime(&ts[0]);
sys/kern/vfs_syscalls.c
4093
if (ts[1].tv_nsec == UTIME_NOW) {
sys/kern/vfs_syscalls.c
4095
ts[1] = ts[0];
sys/kern/vfs_syscalls.c
4097
} else if (ts[1].tv_nsec == UTIME_NOW)
sys/kern/vfs_syscalls.c
4098
nanotime(&ts[1]);
sys/kern/vfs_syscalls.c
4110
timespeccmp(&ts[1], &vattr.va_birthtime, <));
sys/kern/vfs_syscalls.c
4113
if (ts[0].tv_nsec != UTIME_OMIT)
sys/kern/vfs_syscalls.c
4114
vattr.va_atime = ts[0];
sys/kern/vfs_syscalls.c
4116
if (ts[1].tv_nsec != UTIME_OMIT) {
sys/kern/vfs_syscalls.c
4117
vattr.va_mtime = ts[1];
sys/kern/vfs_syscalls.c
4119
vattr.va_birthtime = ts[1];
sys/kern/vfs_syscalls.c
4137
struct timespec ts[2];
sys/kern/vfs_syscalls.c
4153
ts[0].tv_nsec = tptr[0].tv_usec;
sys/kern/vfs_syscalls.c
4158
TIMEVAL_TO_TIMESPEC(&tptr[0], &ts[0]);
sys/kern/vfs_syscalls.c
4163
ts[1].tv_nsec = tptr[1].tv_usec;
sys/kern/vfs_syscalls.c
4168
TIMEVAL_TO_TIMESPEC(&tptr[1], &ts[1]);
sys/kern/vfs_syscalls.c
4171
tsptr = &ts[0];
sys/kern/vfs_wapbl.c
1823
struct timespec ts;
sys/kern/vfs_wapbl.c
1824
getnanotime(&ts);
sys/kern/vfs_wapbl.c
1826
__func__, (long long)ts.tv_sec,
sys/kern/vfs_wapbl.c
1827
(long)ts.tv_nsec, flushsize);
sys/kern/vfs_wapbl.c
2433
struct timespec ts;
sys/kern/vfs_wapbl.c
2437
bintime2timespec(&d, &ts);
sys/kern/vfs_wapbl.c
2440
(uintmax_t)ts.tv_sec, ts.tv_nsec);
sys/kern/vfs_wapbl.c
2469
struct timespec ts;
sys/kern/vfs_wapbl.c
2490
getnanotime(&ts);
sys/kern/vfs_wapbl.c
2491
wc->wc_time = ts.tv_sec;
sys/kern/vfs_wapbl.c
2492
wc->wc_timensec = ts.tv_nsec;
sys/miscfs/genfs/layer_vfsops.c
327
struct timespec *ts)
sys/net/bpf.c
1716
struct timespec ts;
sys/net/bpf.c
1747
nanotime(&ts);
sys/net/bpf.c
1750
catchpacket(d, pkt, pktlen, slen, cpfn, &ts);
sys/net/bpf.c
2010
void *(*cpfn)(void *, const void *, size_t), struct timespec *ts)
sys/net/bpf.c
2083
hp32->bh_tstamp.tv_sec = ts->tv_sec;
sys/net/bpf.c
2084
hp32->bh_tstamp.tv_usec = ts->tv_nsec / 1000;
sys/net/bpf.c
2094
hp->bh_tstamp.tv_sec = ts->tv_sec;
sys/net/bpf.c
2095
hp->bh_tstamp.tv_usec = ts->tv_nsec / 1000;
sys/net/if_wg.c
1343
struct timespec ts;
sys/net/if_wg.c
1346
getnanotime(&ts);
sys/net/if_wg.c
1348
be32enc(timestamp, 0x40000000U + (uint32_t)(ts.tv_sec >> 32));
sys/net/if_wg.c
1350
be32enc(timestamp + 4, (uint32_t)(ts.tv_sec & 0xffffffffU));
sys/net/if_wg.c
1352
be32enc(timestamp + 8, (uint32_t)ts.tv_nsec);
sys/net/npf/npf_ifaddr.c
100
oldt = npf_tableset_swap(ts, newt);
sys/net/npf/npf_ifaddr.c
90
npf_tableset_t *ts = atomic_load_relaxed(&npf->config)->tableset;
sys/net/npf/npf_nat.c
450
npf_tableset_t *ts = npf_config_tableset(np->n_npfctx);
sys/net/npf/npf_nat.c
451
npf_table_t *t = npf_tableset_getbyid(ts, np->n_tid);
sys/net/npf/npf_tableset.c
146
npf_tableset_t *ts = kmem_zalloc(NPF_TABLESET_SIZE(nitems), KM_SLEEP);
sys/net/npf/npf_tableset.c
147
ts->ts_nitems = nitems;
sys/net/npf/npf_tableset.c
148
return ts;
sys/net/npf/npf_tableset.c
152
npf_tableset_destroy(npf_tableset_t *ts)
sys/net/npf/npf_tableset.c
158
for (u_int tid = 0; tid < ts->ts_nitems; tid++) {
sys/net/npf/npf_tableset.c
159
npf_table_t *t = ts->ts_map[tid];
sys/net/npf/npf_tableset.c
169
kmem_free(ts, NPF_TABLESET_SIZE(ts->ts_nitems));
sys/net/npf/npf_tableset.c
178
npf_tableset_insert(npf_tableset_t *ts, npf_table_t *t)
sys/net/npf/npf_tableset.c
183
KASSERT((u_int)tid < ts->ts_nitems);
sys/net/npf/npf_tableset.c
185
if (ts->ts_map[tid] == NULL) {
sys/net/npf/npf_tableset.c
187
ts->ts_map[tid] = t;
sys/net/npf/npf_tableset.c
196
npf_tableset_swap(npf_tableset_t *ts, npf_table_t *newt)
sys/net/npf/npf_tableset.c
199
npf_table_t *oldt = ts->ts_map[tid];
sys/net/npf/npf_tableset.c
201
KASSERT(tid < ts->ts_nitems);
sys/net/npf/npf_tableset.c
208
return atomic_swap_ptr(&ts->ts_map[tid], newt);
sys/net/npf/npf_tableset.c
215
npf_tableset_getbyname(npf_tableset_t *ts, const char *name)
sys/net/npf/npf_tableset.c
219
for (u_int tid = 0; tid < ts->ts_nitems; tid++) {
sys/net/npf/npf_tableset.c
220
if ((t = ts->ts_map[tid]) == NULL)
sys/net/npf/npf_tableset.c
229
npf_tableset_getbyid(npf_tableset_t *ts, unsigned tid)
sys/net/npf/npf_tableset.c
231
if (__predict_true(tid < ts->ts_nitems)) {
sys/net/npf/npf_tableset.c
232
return atomic_load_relaxed(&ts->ts_map[tid]);
sys/net/npf/npf_tableset.c
288
npf_tableset_export(npf_t *npf, const npf_tableset_t *ts, nvlist_t *nvl)
sys/net/npf/npf_tableset.c
294
for (u_int tid = 0; tid < ts->ts_nitems; tid++) {
sys/net/npf/npf_tableset.c
297
if ((t = ts->ts_map[tid]) == NULL) {
sys/net/npf/npf_tableset.c
464
npf_table_check(npf_tableset_t *ts, const char *name, uint64_t tid,
sys/net/npf/npf_tableset.c
469
if (tid >= ts->ts_nitems) {
sys/net/npf/npf_tableset.c
472
if (!replacing && ts->ts_map[tid] != NULL) {
sys/net/npf/npf_tableset.c
487
if ((t = npf_tableset_getbyname(ts, name)) != NULL) {
sys/nfs/nfs_vfsops.c
320
struct timespec ts;
sys/nfs/nfs_vfsops.c
341
ts.tv_sec = NFS_MAXATTRTIMO;
sys/nfs/nfs_vfsops.c
342
ts.tv_nsec = 0;
sys/nfs/nfs_vfsops.c
343
tc_setclock(&ts);
sys/nfs/nfs_vnops.c
1643
struct timespec ts;
sys/nfs/nfs_vnops.c
1645
getnanotime(&ts);
sys/nfs/nfs_vnops.c
1656
vap->va_atime = ts;
sys/nfs/nfs_vnops.c
1658
vap->va_mtime = ts;
sys/nfs/nfs_vnops.c
3490
struct timespec ts;
sys/nfs/nfs_vnops.c
3492
getnanotime(&ts);
sys/nfs/nfs_vnops.c
3494
np->n_atim = ts;
sys/nfs/nfs_vnops.c
3496
np->n_mtim = ts;
sys/opencrypto/crypto.c
1498
crypto_tstat(struct cryptotstat *ts, struct timespec *tv)
sys/opencrypto/crypto.c
1509
timespecadd(&ts->acc, &t, &t);
sys/opencrypto/crypto.c
1510
if (timespeccmp(&t, &ts->min, <))
sys/opencrypto/crypto.c
1511
ts->min = t;
sys/opencrypto/crypto.c
1512
if (timespeccmp(&t, &ts->max, >))
sys/opencrypto/crypto.c
1513
ts->max = t;
sys/opencrypto/crypto.c
1514
ts->count++;
sys/rump/librump/rumpkern/cons.c
140
struct timespec ts;
sys/rump/librump/rumpkern/cons.c
142
getnanoboottime(&ts);
sys/rump/librump/rumpkern/cons.c
146
sb->st_atimespec = sb->st_mtimespec = sb->st_ctimespec = ts;
sys/rump/librump/rumpkern/cons.c
147
sb->st_birthtimespec = ts;
sys/rump/librump/rumpkern/locks.c
381
docvwait(kcondvar_t *cv, kmutex_t *mtx, struct timespec *ts)
sys/rump/librump/rumpkern/locks.c
400
if (ts) {
sys/rump/librump/rumpkern/locks.c
402
ts->tv_sec, ts->tv_nsec))
sys/rump/librump/rumpkern/locks.c
459
struct timespec ts;
sys/rump/librump/rumpkern/locks.c
466
ts.tv_sec = ticks / hz;
sys/rump/librump/rumpkern/locks.c
467
ts.tv_nsec = (ticks % hz) * (1000000000/hz);
sys/rump/librump/rumpkern/locks.c
468
rv = docvwait(cv, mtx, &ts);
sys/rump/librump/rumpkern/locks_up.c
376
struct timespec ts;
sys/rump/librump/rumpkern/locks_up.c
383
ts.tv_sec = ticks / hz;
sys/rump/librump/rumpkern/locks_up.c
384
ts.tv_nsec = (ticks % hz) * (1000000000/hz);
sys/rump/librump/rumpkern/locks_up.c
392
rv = rump_schedlock_cv_timedwait(RUMPCV(cv), &ts);
sys/rump/librump/rumpkern/ltsleep.c
67
struct timespec ts;
sys/rump/librump/rumpkern/ltsleep.c
88
ts.tv_sec = timo / hz;
sys/rump/librump/rumpkern/ltsleep.c
89
ts.tv_nsec = (timo % hz) * (1000000000/hz);
sys/rump/librump/rumpkern/ltsleep.c
92
ts.tv_sec, ts.tv_nsec);
sys/rump/librump/rumpkern/rump_syscalls.c
3989
rump___sysimpl_pselect(int nd, fd_set * in, fd_set * ou, fd_set * ex, const struct timespec * ts, const sigset_t * mask)
sys/rump/librump/rumpkern/rump_syscalls.c
4001
SPARG(&callarg, ts) = (const struct timespec50 *)ts;
sys/rump/librump/rumpkern/rump_syscalls.c
4024
rump___sysimpl_pollts(struct pollfd * fds, u_int nfds, const struct timespec * ts, const sigset_t * mask)
sys/rump/librump/rumpkern/rump_syscalls.c
4034
SPARG(&callarg, ts) = (const struct timespec50 *)ts;
sys/rump/librump/rumpkern/rump_syscalls.c
5368
rump___sysimpl_pselect50(int nd, fd_set * in, fd_set * ou, fd_set * ex, const struct timespec * ts, const sigset_t * mask)
sys/rump/librump/rumpkern/rump_syscalls.c
5380
SPARG(&callarg, ts) = ts;
sys/rump/librump/rumpkern/rump_syscalls.c
5402
rump___sysimpl_pollts50(struct pollfd * fds, u_int nfds, const struct timespec * ts, const sigset_t * mask)
sys/rump/librump/rumpkern/rump_syscalls.c
5412
SPARG(&callarg, ts) = ts;
sys/rump/librump/rumpkern/scheduler.c
206
rump_schedlock_cv_timedwait(struct rumpuser_cv *cv, const struct timespec *ts)
sys/rump/librump/rumpkern/scheduler.c
213
ts->tv_sec, ts->tv_nsec);
sys/rump/librump/rumpvfs/rumpfs.c
1406
struct timespec ts;
sys/rump/librump/rumpvfs/rumpfs.c
1415
getnanotime(&ts);
sys/rump/librump/rumpvfs/rumpfs.c
1416
(void)rumpfs_update(RUMPFS_ACCESS, vp, &ts, &ts, &ts);
sys/rump/librump/rumpvfs/rumpfs.c
1480
struct timespec ts;
sys/rump/librump/rumpvfs/rumpfs.c
1482
getnanotime(&ts);
sys/rump/librump/rumpvfs/rumpfs.c
1483
(void)rumpfs_update(RUMPFS_MODIFY, vp, &ts, &ts, &ts);
sys/rump/librump/rumpvfs/rumpfs.c
514
struct timespec ts;
sys/rump/librump/rumpvfs/rumpfs.c
533
nanotime(&ts);
sys/rump/librump/rumpvfs/rumpfs.c
548
va->va_atime = ts;
sys/rump/librump/rumpvfs/rumpfs.c
549
va->va_mtime = ts;
sys/rump/librump/rumpvfs/rumpfs.c
550
va->va_ctime = ts;
sys/rump/librump/rumpvfs/rumpfs.c
551
va->va_birthtime = ts;
sys/secmodel/keylock/secmodel_keylock.c
186
struct timespec *ts = arg1;
sys/secmodel/keylock/secmodel_keylock.c
189
if (keylock_position() > 1 && time_wraps(ts, delta))
sys/secmodel/securelevel/secmodel_securelevel.c
275
struct timespec *ts = arg1;
sys/secmodel/securelevel/secmodel_securelevel.c
278
if (securelevel > 1 && time_wraps(ts, delta))
sys/sys/sleeptab.h
113
#define TS_WAITERS(ts, q) \
sys/sys/sleeptab.h
114
(ts)->ts_waiters[(q)]
sys/sys/sleeptab.h
116
#define TS_ALL_WAITERS(ts) \
sys/sys/sleeptab.h
117
((ts)->ts_waiters[TS_READER_Q] + \
sys/sys/sleeptab.h
118
(ts)->ts_waiters[TS_WRITER_Q])
sys/sys/sleeptab.h
120
#define TS_FIRST(ts, q) (LIST_FIRST(&(ts)->ts_sleepq[(q)]))
sys/sys/syscallargs.h
2091
syscallarg(const struct timespec50 *) ts;
sys/sys/syscallargs.h
2415
syscallarg(const struct timespec50 *) ts;
sys/sys/syscallargs.h
2423
syscallarg(const struct timespec50 *) ts;
sys/sys/syscallargs.h
2831
syscallarg(const struct timespec *) ts;
sys/sys/syscallargs.h
2854
syscallarg(const struct timespec *) ts;
sys/sys/syscallargs.h
2862
syscallarg(const struct timespec *) ts;
sys/sys/syscallargs.h
3176
syscallarg(struct timespec *) ts;
sys/sys/time.h
179
bintime2timespec(const struct bintime *bt, struct timespec *ts)
sys/sys/time.h
182
ts->tv_sec = bt->sec;
sys/sys/time.h
183
ts->tv_nsec =
sys/sys/time.h
188
timespec2bintime(const struct timespec *ts, struct bintime *bt)
sys/sys/time.h
191
bt->sec = ts->tv_sec;
sys/sys/time.h
192
bt->frac = (uint64_t)ts->tv_nsec * BINTIME_SCALE_NS;
sys/sys/time.h
56
#define TIMEVAL_TO_TIMESPEC(tv, ts) do { \
sys/sys/time.h
57
(ts)->tv_sec = (tv)->tv_sec; \
sys/sys/time.h
58
(ts)->tv_nsec = (tv)->tv_usec * 1000; \
sys/sys/time.h
60
#define TIMESPEC_TO_TIMEVAL(tv, ts) do { \
sys/sys/time.h
61
(tv)->tv_sec = (ts)->tv_sec; \
sys/sys/time.h
62
(tv)->tv_usec = (suseconds_t)(ts)->tv_nsec / 1000; \
sys/sys/timetc.h
86
void tc_setclock(const struct timespec *ts);
sys/ufs/ext2fs/ext2fs_dinode.h
223
ext2fs_dinode_time_get(struct timespec *ts, uint32_t epoch, uint32_t extra)
sys/ufs/ext2fs/ext2fs_dinode.h
225
ts->tv_sec = (signed) epoch;
sys/ufs/ext2fs/ext2fs_dinode.h
230
if (epoch_bits == 3 && ts->tv_sec < 0)
sys/ufs/ext2fs/ext2fs_dinode.h
233
ts->tv_sec |= epoch_bits << 32;
sys/ufs/ext2fs/ext2fs_dinode.h
235
ts->tv_nsec = extra >> 2;
sys/ufs/ext2fs/ext2fs_dinode.h
237
ts->tv_nsec = 0;
sys/ufs/ext2fs/ext2fs_dinode.h
240
#define EXT2_DINODE_TIME_GET(ts, dinode, field, isize) \
sys/ufs/ext2fs/ext2fs_dinode.h
241
ext2fs_dinode_time_get(ts, (dinode)->field, \
sys/ufs/ext2fs/ext2fs_dinode.h
247
ext2fs_dinode_time_set(const struct timespec *ts, uint32_t *epoch, uint32_t *extra)
sys/ufs/ext2fs/ext2fs_dinode.h
249
*epoch = (int32_t) ts->tv_sec;
sys/ufs/ext2fs/ext2fs_dinode.h
252
uint32_t epoch_bits = (ts->tv_sec >> 32) & 0x3;
sys/ufs/ext2fs/ext2fs_dinode.h
254
*extra = (ts->tv_nsec << 2) | epoch_bits;
sys/ufs/ext2fs/ext2fs_dinode.h
257
#define EXT2_DINODE_TIME_SET(ts, dinode, field, isize) \
sys/ufs/ext2fs/ext2fs_dinode.h
258
ext2fs_dinode_time_set(ts, &(dinode)->field, \
sys/ufs/ffs/ffs_alloc.c
1642
struct discarddata *ts = arg;
sys/ufs/ffs/ffs_alloc.c
1643
struct fs *fs = ts->fs;
sys/ufs/ffs/ffs_alloc.c
1668
mutex_enter(&ts->wqlk);
sys/ufs/ffs/ffs_alloc.c
1669
ts->wqcnt--;
sys/ufs/ffs/ffs_alloc.c
1670
if (ts->wqdraining && !ts->wqcnt)
sys/ufs/ffs/ffs_alloc.c
1671
cv_signal(&ts->wqcv);
sys/ufs/ffs/ffs_alloc.c
1672
mutex_exit(&ts->wqlk);
sys/ufs/ffs/ffs_alloc.c
1678
struct discarddata *ts;
sys/ufs/ffs/ffs_alloc.c
1681
ts = kmem_zalloc(sizeof (*ts), KM_SLEEP);
sys/ufs/ffs/ffs_alloc.c
1682
error = workqueue_create(&ts->wq, "trimwq", ffs_discardcb, ts,
sys/ufs/ffs/ffs_alloc.c
1685
kmem_free(ts, sizeof (*ts));
sys/ufs/ffs/ffs_alloc.c
1688
mutex_init(&ts->entrylk, MUTEX_DEFAULT, IPL_NONE);
sys/ufs/ffs/ffs_alloc.c
1689
mutex_init(&ts->wqlk, MUTEX_DEFAULT, IPL_NONE);
sys/ufs/ffs/ffs_alloc.c
1690
cv_init(&ts->wqcv, "trimwqcv");
sys/ufs/ffs/ffs_alloc.c
1691
ts->maxsize = 100*1024; /* XXX */
sys/ufs/ffs/ffs_alloc.c
1692
ts->fs = fs;
sys/ufs/ffs/ffs_alloc.c
1693
return ts;
sys/ufs/ffs/ffs_alloc.c
1699
struct discarddata *ts = vts;
sys/ufs/ffs/ffs_alloc.c
1703
mutex_enter(&ts->wqlk);
sys/ufs/ffs/ffs_alloc.c
1704
if (ts->wqcnt) {
sys/ufs/ffs/ffs_alloc.c
1705
ts->wqdraining = 1;
sys/ufs/ffs/ffs_alloc.c
1706
cv_wait(&ts->wqcv, &ts->wqlk);
sys/ufs/ffs/ffs_alloc.c
1708
mutex_exit(&ts->wqlk);
sys/ufs/ffs/ffs_alloc.c
1710
mutex_enter(&ts->entrylk);
sys/ufs/ffs/ffs_alloc.c
1711
if (ts->entry) {
sys/ufs/ffs/ffs_alloc.c
1712
td = ts->entry;
sys/ufs/ffs/ffs_alloc.c
1713
ts->entry = NULL;
sys/ufs/ffs/ffs_alloc.c
1715
mutex_exit(&ts->entrylk);
sys/ufs/ffs/ffs_alloc.c
1718
ffs_blkfree_td(ts->fs, td);
sys/ufs/ffs/ffs_alloc.c
1725
cv_destroy(&ts->wqcv);
sys/ufs/ffs/ffs_alloc.c
1726
mutex_destroy(&ts->entrylk);
sys/ufs/ffs/ffs_alloc.c
1727
mutex_destroy(&ts->wqlk);
sys/ufs/ffs/ffs_alloc.c
1728
workqueue_destroy(ts->wq);
sys/ufs/ffs/ffs_alloc.c
1729
kmem_free(ts, sizeof(*ts));
sys/ufs/ffs/ffs_alloc.c
1739
struct discarddata *ts;
sys/ufs/ffs/ffs_alloc.c
1759
ts = ump->um_discarddata;
sys/ufs/ffs/ffs_alloc.c
1762
mutex_enter(&ts->entrylk);
sys/ufs/ffs/ffs_alloc.c
1763
if (ts->entry) {
sys/ufs/ffs/ffs_alloc.c
1764
td = ts->entry;
sys/ufs/ffs/ffs_alloc.c
1767
&& td->size + size <= ts->maxsize) {
sys/ufs/ffs/ffs_alloc.c
1770
if (td->size < ts->maxsize) {
sys/ufs/ffs/ffs_alloc.c
1774
mutex_exit(&ts->entrylk);
sys/ufs/ffs/ffs_alloc.c
1779
ts->entry = NULL;
sys/ufs/ffs/ffs_alloc.c
1781
mutex_exit(&ts->entrylk);
sys/ufs/ffs/ffs_alloc.c
1787
mutex_enter(&ts->wqlk);
sys/ufs/ffs/ffs_alloc.c
1788
ts->wqcnt++;
sys/ufs/ffs/ffs_alloc.c
1789
mutex_exit(&ts->wqlk);
sys/ufs/ffs/ffs_alloc.c
1790
workqueue_enqueue(ts->wq, &td->wk, NULL);
sys/ufs/ffs/ffs_alloc.c
1800
if (td->size < ts->maxsize) { /* XXX always the case */
sys/ufs/ffs/ffs_alloc.c
1801
mutex_enter(&ts->entrylk);
sys/ufs/ffs/ffs_alloc.c
1802
if (!ts->entry) { /* possible race? */
sys/ufs/ffs/ffs_alloc.c
1806
ts->entry = td;
sys/ufs/ffs/ffs_alloc.c
1809
mutex_exit(&ts->entrylk);
sys/ufs/ffs/ffs_alloc.c
1815
mutex_enter(&ts->wqlk);
sys/ufs/ffs/ffs_alloc.c
1816
ts->wqcnt++;
sys/ufs/ffs/ffs_alloc.c
1817
mutex_exit(&ts->wqlk);
sys/ufs/ffs/ffs_alloc.c
1818
workqueue_enqueue(ts->wq, &td->wk, NULL);
sys/ufs/ffs/ffs_snapshot.c
188
struct timespec ts;
sys/ufs/ffs/ffs_snapshot.c
308
TIMEVAL_TO_TIMESPEC(&starttime, &ts);
sys/ufs/ffs/ffs_snapshot.c
310
*ctime = ts;
sys/ufs/ffs/ffs_snapshot.c
311
DIP_ASSIGN(ip, mtime, ts.tv_sec);
sys/ufs/ffs/ffs_snapshot.c
312
DIP_ASSIGN(ip, mtimensec, ts.tv_nsec);
sys/ufs/ffs/ffs_vfsops.c
2213
struct timespec ts;
sys/ufs/ffs/ffs_vfsops.c
2313
vfs_timestamp(&ts);
sys/ufs/ffs/ffs_vfsops.c
2314
ip->i_ffs2_birthtime = ts.tv_sec;
sys/ufs/ffs/ffs_vfsops.c
2315
ip->i_ffs2_birthnsec = ts.tv_nsec;
sys/ufs/lfs/lfs_accessors.h
557
const struct timespec *ts)
sys/ufs/lfs/lfs_accessors.h
560
dip->u_64.di_birthtime = ts->tv_sec;
sys/ufs/lfs/lfs_accessors.h
561
dip->u_64.di_birthnsec = ts->tv_nsec;
sys/ufs/lfs/lfs_segment.c
173
struct timespec ts;
sys/ufs/lfs/lfs_segment.c
177
vfs_timestamp(&ts);
sys/ufs/lfs/lfs_segment.c
179
lfs_dino_setmtime(fs, ip->i_din, ts.tv_sec);
sys/ufs/lfs/lfs_segment.c
180
lfs_dino_setmtimensec(fs, ip->i_din, ts.tv_nsec);
sys/ufs/lfs/lfs_vfsops.c
1785
struct timespec ts;
sys/ufs/lfs/lfs_vfsops.c
1790
memset(&ts, 0, sizeof ts); /* XXX gcc */
sys/ufs/lfs/lfs_vfsops.c
1815
ts.tv_sec = lfs_if_getatime_sec(fs, ifp);
sys/ufs/lfs/lfs_vfsops.c
1816
ts.tv_nsec = lfs_if_getatime_nsec(fs, ifp);
sys/ufs/lfs/lfs_vfsops.c
1912
lfs_dino_setatime(fs, ip->i_din, ts.tv_sec);
sys/ufs/lfs/lfs_vfsops.c
1913
lfs_dino_setatimensec(fs, ip->i_din, ts.tv_nsec);
sys/ufs/lfs/ulfs_lookup.c
770
struct timespec ts;
sys/ufs/lfs/ulfs_lookup.c
818
vfs_timestamp(&ts);
sys/ufs/lfs/ulfs_lookup.c
819
ret = lfs_update(dvp, &ts, &ts, UPDATE_DIROP);
sys/ufs/ufs/ufs_lookup.c
873
struct timespec ts;
sys/ufs/ufs/ufs_lookup.c
908
vfs_timestamp(&ts);
sys/ufs/ufs/ufs_lookup.c
909
ret = UFS_UPDATE(dvp, &ts, &ts, UPDATE_DIROP);
tests/dev/audio/audiotest.c
1171
#define KEVENT_POLL(kq, kev, nev, ts) \
tests/dev/audio/audiotest.c
1172
debug_kevent_poll(__LINE__, kq, kev, nev, ts)
tests/dev/audio/audiotest.c
1174
const struct timespec *ts)
tests/dev/audio/audiotest.c
1178
if (ts == NULL) {
tests/dev/audio/audiotest.c
1180
} else if (ts->tv_sec == 0 && ts->tv_nsec == 0) {
tests/dev/audio/audiotest.c
1184
(int)ts->tv_sec, ts->tv_nsec);
tests/dev/audio/audiotest.c
1187
int r = rump_or_kevent(kq, NULL, 0, kev, nev, ts);
tests/dev/audio/audiotest.c
3547
struct timespec ts;
tests/dev/audio/audiotest.c
3560
ts.tv_sec = 0;
tests/dev/audio/audiotest.c
3561
ts.tv_nsec = 100 * 1000 * 1000; // 100msec
tests/dev/audio/audiotest.c
3582
r = KEVENT_POLL(kq, &kev, 1, &ts);
tests/dev/audio/audiotest.c
3630
struct timespec ts;
tests/dev/audio/audiotest.c
3651
memset(&ts, 0, sizeof(ts));
tests/dev/audio/audiotest.c
3652
r = KEVENT_POLL(kq, &kev, 1, &ts);
tests/dev/audio/audiotest.c
3676
struct timespec ts;
tests/dev/audio/audiotest.c
3718
ts.tv_sec = 0;
tests/dev/audio/audiotest.c
3719
ts.tv_nsec = 100L * 1000 * 1000; /* 100msec */
tests/dev/audio/audiotest.c
3720
r = KEVENT_POLL(kq, &kev, 1, &ts);
tests/dev/audio/audiotest.c
3741
struct timespec ts;
tests/dev/audio/audiotest.c
3793
ts.tv_sec = 0;
tests/dev/audio/audiotest.c
3794
ts.tv_nsec = 100L * 1000 * 1000; /* 100msec */
tests/dev/audio/audiotest.c
3795
r = KEVENT_POLL(kq, &kev, 1, &ts);
tests/dev/audio/audiotest.c
3814
struct timespec ts;
tests/dev/audio/audiotest.c
3898
ts.tv_sec = 2;
tests/dev/audio/audiotest.c
3899
ts.tv_nsec = 0;
tests/dev/audio/audiotest.c
3900
r = KEVENT_POLL(kq, &kev, 1, &ts);
tests/dev/audio/audiotest.c
3932
struct timespec ts;
tests/dev/audio/audiotest.c
3948
memset(&ts, 0, sizeof(ts));
tests/dev/audio/audiotest.c
4034
ts.tv_sec = 2;
tests/dev/audio/audiotest.c
4035
ts.tv_nsec = 0;
tests/dev/audio/audiotest.c
4036
r = KEVENT_POLL(kq, &kev[0], 1, &ts);
tests/fs/fifofs/t_fifo.c
100
static const struct timespec ts = { 0, 500000000 };
tests/fs/fifofs/t_fifo.c
151
nanosleep(&ts, NULL);
tests/fs/fifofs/t_fifo.c
41
static const struct timespec ts = { 0, 10000 };
tests/fs/fifofs/t_fifo.c
62
nanosleep(&ts, NULL);
tests/fs/puffs/h_dtfs/dtfs.c
104
struct timespec ts;
tests/fs/puffs/h_dtfs/dtfs.c
236
ts.tv_sec = 1;
tests/fs/puffs/h_dtfs/dtfs.c
237
ts.tv_nsec = 0;
tests/fs/puffs/h_dtfs/dtfs.c
239
puffs_ml_settimeout(pu, &ts);
tests/fs/puffs/h_dtfs/dtfs_subr.c
332
struct timespec ts;
tests/fs/puffs/h_dtfs/dtfs_subr.c
335
TIMEVAL_TO_TIMESPEC(&tv, &ts);
tests/fs/puffs/h_dtfs/dtfs_subr.c
338
pn->pn_va.va_atime = ts;
tests/fs/puffs/h_dtfs/dtfs_subr.c
340
pn->pn_va.va_ctime = ts;
tests/fs/puffs/h_dtfs/dtfs_subr.c
342
pn->pn_va.va_mtime = ts;
tests/fs/puffs/h_dtfs/dtfs_subr.c
46
struct timespec ts;
tests/fs/puffs/h_dtfs/dtfs_subr.c
49
TIMEVAL_TO_TIMESPEC(&tv, &ts);
tests/fs/puffs/h_dtfs/dtfs_subr.c
71
vap->va_atime = vap->va_mtime = vap->va_ctime = vap->va_birthtime = ts;
tests/kernel/kqueue/t_empty.c
122
if (kevent(kq, NULL, 0, &event, 1, &ts) == 1) {
tests/kernel/kqueue/t_empty.c
129
ATF_REQUIRE(kevent(kq, NULL, 0, &event, 1, &ts) == 1);
tests/kernel/kqueue/t_empty.c
52
struct timespec ts = { 0, 0 };
tests/kernel/kqueue/t_empty.c
65
ATF_REQUIRE(kevent(kq, NULL, 0, &event, 1, &ts) == 1);
tests/kernel/kqueue/t_empty.c
97
ATF_REQUIRE(kevent(kq, NULL, 0, &event, 1, &ts) == 0);
tests/kernel/kqueue/t_proc4.c
160
ATF_REQUIRE(kevent(kq, NULL, 0, &event, 1, &ts) == 0);
tests/kernel/kqueue/t_proc4.c
88
struct timespec ts = { 0, 0 };
tests/kernel/kqueue/t_scan.c
56
struct timespec ts = { 0, 0 };
tests/kernel/kqueue/t_scan.c
61
rv = kevent(kq, NULL, 0, &event, 1, &ts);
tests/kernel/kqueue/t_timer.c
114
&ts) == 0);
tests/kernel/kqueue/t_timer.c
115
timespecsub(&ts, &ots, &ts);
tests/kernel/kqueue/t_timer.c
116
ATF_REQUIRE(check_timespec(&ts,
tests/kernel/kqueue/t_timer.c
132
&ts) == 0);
tests/kernel/kqueue/t_timer.c
133
timespecsub(&ts, &ots, &ts);
tests/kernel/kqueue/t_timer.c
134
ATF_REQUIRE(check_timespec(&ts, TIME2_TOTAL_SEC));
tests/kernel/kqueue/t_timer.c
148
ts.tv_sec = TIME2_TOTAL_SEC;
tests/kernel/kqueue/t_timer.c
149
ts.tv_nsec = 0;
tests/kernel/kqueue/t_timer.c
150
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 0);
tests/kernel/kqueue/t_timer.c
151
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0);
tests/kernel/kqueue/t_timer.c
152
timespecsub(&ts, &ots, &ts);
tests/kernel/kqueue/t_timer.c
153
ATF_REQUIRE(check_timespec(&ts, TIME2_TOTAL_SEC));
tests/kernel/kqueue/t_timer.c
166
struct timespec ts = { 0, 0 };
tests/kernel/kqueue/t_timer.c
180
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_timer.c
196
struct timespec ts = { 0, 0 };
tests/kernel/kqueue/t_timer.c
213
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_timer.c
228
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 0);
tests/kernel/kqueue/t_timer.c
234
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_timer.c
263
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_timer.c
278
struct timespec ts, ots;
tests/kernel/kqueue/t_timer.c
293
ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &ts) == 0);
tests/kernel/kqueue/t_timer.c
294
timespecsub(&ts, &ots, &ts);
tests/kernel/kqueue/t_timer.c
300
ATF_REQUIRE(check_timespec(&ts, 4) || check_timespec(&ts, 5));
tests/kernel/kqueue/t_timer.c
302
ts.tv_sec = 0;
tests/kernel/kqueue/t_timer.c
303
ts.tv_nsec = 0;
tests/kernel/kqueue/t_timer.c
304
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_timer.c
313
struct timespec ts, ots;
tests/kernel/kqueue/t_timer.c
323
ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts) == 0);
tests/kernel/kqueue/t_timer.c
325
timespecsub(&ts, &ots, &ts);
tests/kernel/kqueue/t_timer.c
326
ATF_REQUIRE_MSG(check_timespec(&ts, PREC_TIMEOUT_SEC),
tests/kernel/kqueue/t_timer.c
45
check_timespec(struct timespec *ts, time_t seconds)
tests/kernel/kqueue/t_timer.c
58
if (ts->tv_sec < seconds - 1 ||
tests/kernel/kqueue/t_timer.c
59
(ts->tv_sec == seconds - 1 && ts->tv_nsec < 500000000))
tests/kernel/kqueue/t_timer.c
61
else if (ts->tv_sec > upper ||
tests/kernel/kqueue/t_timer.c
62
(ts->tv_sec == upper && ts->tv_nsec >= 500000000))
tests/kernel/kqueue/t_timer.c
66
ts->tv_sec, ts->tv_nsec, (result ? "" : "not "),
tests/kernel/kqueue/t_timer.c
90
struct timespec ots, ts;
tests/kernel/kqueue/t_vnode.c
123
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
147
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
171
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
194
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
218
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
23
static const struct timespec ts = {0, 0};
tests/kernel/kqueue/t_vnode.c
242
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
266
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
289
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
312
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
336
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
360
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
384
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
408
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
432
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
456
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
480
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
504
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/kqueue/t_vnode.c
549
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_vnode.c
554
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_vnode.c
560
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_vnode.c
566
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_vnode.c
571
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_vnode.c
581
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_vnode.c
585
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_vnode.c
589
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_vnode.c
656
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_vnode.c
661
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 0);
tests/kernel/kqueue/t_vnode.c
664
ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &ts) == 1);
tests/kernel/kqueue/t_vnode.c
702
ATF_REQUIRE(kevent(kq, NULL, 0, event, 2, &ts) == 2);
tests/kernel/kqueue/t_vnode.c
99
ATF_REQUIRE(kevent(kq, NULL, 0, changelist, 1, &ts) != -1);
tests/kernel/t_nanosleep.c
67
struct timespec *ts;
tests/kernel/t_nanosleep.c
75
ts = &after;
tests/kernel/t_nanosleep.c
77
ts = &to_sleep;
tests/kernel/t_nanosleep.c
83
(intmax_t)ts->tv_sec, ts->tv_nsec);
tests/kernel/t_nanosleep.c
86
(intmax_t)ts->tv_sec, ts->tv_nsec);
tests/kernel/t_nanosleep.c
93
if ((e = clock_nanosleep(clock, flags, ts, &after)) != 0)
tests/kernel/t_time_arith.c
755
const struct tstohz_case *ts = &tstohz_cases[i];
tests/kernel/t_time_arith.c
759
hz = ts->ts_hz;
tests/kernel/t_time_arith.c
762
ticks = tstohz(&ts->ts_ts);
tests/kernel/t_time_arith.c
763
if (ts->ts_xfail)
tests/kernel/t_time_arith.c
764
atf_tc_expect_fail("%s", ts->ts_xfail);
tests/kernel/t_time_arith.c
770
ATF_CHECK_MSG(((unsigned)(ticks - ts->ts_ticks) <=
tests/kernel/t_time_arith.c
771
(unsigned)ts->ts_ticks/1000),
tests/kernel/t_time_arith.c
775
(long long)ts->ts_ts.tv_sec,
tests/kernel/t_time_arith.c
776
(long)ts->ts_ts.tv_nsec,
tests/kernel/t_time_arith.c
777
ts->ts_hz,
tests/kernel/t_time_arith.c
778
ts->ts_ticks,
tests/kernel/t_time_arith.c
780
if (ts->ts_xfail)
tests/kernel/t_timeleft.c
57
struct timespec ts;
tests/kernel/t_timeleft.c
61
timeleft__lwp_park(struct timespec *ts)
tests/kernel/t_timeleft.c
64
ts, 0, ts, NULL) == -1);
tests/kernel/t_timeleft.c
69
timeleft_pselect(struct timespec *ts)
tests/kernel/t_timeleft.c
71
ATF_REQUIRE_ERRNO(EINTR, pselect(1, NULL, NULL, NULL, ts, NULL));
tests/kernel/t_timeleft.c
79
(*i->fun)(&i->ts);
tests/kernel/t_timeleft.c
86
const struct timespec ts = { 5, 0 };
tests/kernel/t_timeleft.c
88
struct info i = { fun, ts };
tests/kernel/t_timeleft.c
97
printf("Orig time %ju.%lu\n", (intmax_t)ts.tv_sec, ts.tv_nsec);
tests/kernel/t_timeleft.c
98
printf("Time left %ju.%lu\n", (intmax_t)i.ts.tv_sec, i.ts.tv_nsec);
tests/kernel/t_timeleft.c
99
ATF_REQUIRE(timespeccmp(&i.ts, &ts, <));
tests/lib/libc/gen/t_timespec_get.c
107
ATF_REQUIRE(ts2.tv_sec >= ts.tv_sec);
tests/lib/libc/gen/t_timespec_get.c
108
ATF_REQUIRE((ts2.tv_sec - ts.tv_sec) < 86400);
tests/lib/libc/gen/t_timespec_get.c
112
ATF_REQUIRE(ts2.tv_sec >= ts.tv_sec);
tests/lib/libc/gen/t_timespec_get.c
43
struct timespec ts, ts2;
tests/lib/libc/gen/t_timespec_get.c
45
ATF_REQUIRE_EQ(timespec_getres(&ts, TIME_MONOTONIC), TIME_MONOTONIC);
tests/lib/libc/gen/t_timespec_get.c
48
ATF_REQUIRE_EQ(ts.tv_sec, ts2.tv_sec);
tests/lib/libc/gen/t_timespec_get.c
49
ATF_REQUIRE_EQ(ts.tv_nsec, ts2.tv_nsec);
tests/lib/libc/gen/t_timespec_get.c
51
ATF_REQUIRE_EQ(timespec_getres(&ts, TIME_UTC), TIME_UTC);
tests/lib/libc/gen/t_timespec_get.c
54
ATF_REQUIRE_EQ(ts.tv_sec, ts2.tv_sec);
tests/lib/libc/gen/t_timespec_get.c
55
ATF_REQUIRE_EQ(ts.tv_nsec, ts2.tv_nsec);
tests/lib/libc/gen/t_timespec_get.c
58
ATF_REQUIRE_EQ(timespec_getres(&ts, INT_MAX), 0);
tests/lib/libc/gen/t_timespec_get.c
69
struct timespec ts, ts2;
tests/lib/libc/gen/t_timespec_get.c
71
ATF_REQUIRE_EQ(timespec_get(&ts, TIME_UTC), TIME_UTC);
tests/lib/libc/gen/t_timespec_get.c
79
if (ts2.tv_sec >= ts.tv_sec) {
tests/lib/libc/gen/t_timespec_get.c
80
ATF_REQUIRE((ts2.tv_sec - ts.tv_sec) < 86400);
tests/lib/libc/gen/t_timespec_get.c
82
ATF_REQUIRE((ts.tv_sec - ts2.tv_sec) < 86400);
tests/lib/libc/gen/t_timespec_get.c
86
ATF_REQUIRE_EQ(timespec_get(&ts, INT_MAX), 0);
tests/lib/libc/gen/t_timespec_get.c
97
struct timespec ts, ts2;
tests/lib/libc/gen/t_timespec_get.c
99
ATF_REQUIRE_EQ(timespec_get(&ts, TIME_MONOTONIC), TIME_MONOTONIC);
tests/lib/libc/locale/t_strfmon.c
100
const char *ts;
tests/lib/libc/locale/t_strfmon.c
107
ts = lc->mon_thousands_sep;
tests/lib/libc/locale/t_strfmon.c
108
if (strlen(ts) == 0)
tests/lib/libc/locale/t_strfmon.c
109
ts = lc->thousands_sep;
tests/lib/libc/locale/t_strfmon.c
111
if (strlen(ts) < 2)
tests/lib/libc/locale/t_strfmon.c
118
strlcat(expected, ts, sizeof(expected));
tests/lib/libc/string/t_bm.c
74
size_t ts;
tests/lib/libc/string/t_bm.c
79
for (ts = 0; ts < sizeof(testcases)/sizeof(t_testcase); ts++) {
tests/lib/libc/string/t_bm.c
80
ATF_CHECK((pattern = bm_comp((const u_char *)testcases[ts].pattern,
tests/lib/libc/string/t_bm.c
81
strlen(testcases[ts].pattern), (const u_char *)testcases[ts].freq)));
tests/lib/libc/string/t_bm.c
83
ATF_REQUIRE((text = strdup(testcases[ts].text)));
tests/lib/libc/string/t_bm.c
86
if (testcases[ts].match == -1)
tests/lib/libc/string/t_bm.c
89
ATF_CHECK_EQ(testcases[ts].match,
tests/lib/libc/sys/t_clock_gettime.c
188
struct timespec ts;
tests/lib/libc/sys/t_clock_gettime.c
201
ts.tv_sec = 0;
tests/lib/libc/sys/t_clock_gettime.c
202
ts.tv_nsec = 100000000;
tests/lib/libc/sys/t_clock_gettime.c
203
(void)nanosleep(&ts, NULL);
tests/lib/libc/sys/t_clock_gettime.c
293
struct timespec ts;
tests/lib/libc/sys/t_clock_gettime.c
296
RLF(rv = clock_getres(clockid, &ts), "%s", clockname);
tests/lib/libc/sys/t_clock_gettime.c
298
ATF_CHECK_MSG(ts.tv_sec == 0,
tests/lib/libc/sys/t_clock_gettime.c
301
clockname, ts.tv_sec, ts.tv_nsec);
tests/lib/libc/sys/t_eventfd.c
271
const struct timespec ts = { .tv_sec = 0, .tv_nsec = 0 };
tests/lib/libc/sys/t_eventfd.c
284
ATF_REQUIRE(kevent(kq, kev, 2, NULL, 0, &ts) == 0);
tests/lib/libc/sys/t_eventfd.c
319
ATF_REQUIRE(kevent(kq, NULL, 0, kev, 2, &ts) == 1);
tests/lib/libc/sys/t_eventfd.c
356
ATF_REQUIRE(kevent(kq, NULL, 0, kev, 2, &ts) == 1);
tests/lib/libc/sys/t_futex_ops.c
1306
struct timespec ts;
tests/lib/libc/sys/t_futex_ops.c
1316
ts.tv_sec = 2;
tests/lib/libc/sys/t_futex_ops.c
1317
ts.tv_nsec = 0;
tests/lib/libc/sys/t_futex_ops.c
1319
ts = deadline;
tests/lib/libc/sys/t_futex_ops.c
1325
1, &ts, NULL, 0, FUTEX_BITSET_MATCH_ANY) == -1);
tests/lib/libc/sys/t_futex_ops.c
1329
RL(clock_gettime(clock, &ts));
tests/lib/libc/sys/t_futex_ops.c
1330
ATF_CHECK_MSG(ts.tv_sec >= deadline.tv_sec,
tests/lib/libc/sys/t_futex_ops.c
1332
(long long)ts.tv_sec, ts.tv_nsec,
tests/lib/libc/sys/t_futex_ops.c
1334
ATF_CHECK_MSG((ts.tv_sec > deadline.tv_sec ||
tests/lib/libc/sys/t_futex_ops.c
1335
ts.tv_nsec >= deadline.tv_nsec),
tests/lib/libc/sys/t_futex_ops.c
1337
(long long)ts.tv_sec, ts.tv_nsec,
tests/lib/libc/sys/t_lwp_ctl.c
50
struct timespec ts;
tests/lib/libc/sys/t_lwp_ctl.c
58
ts.tv_nsec = 10*1000000;
tests/lib/libc/sys/t_lwp_ctl.c
59
ts.tv_sec = 0;
tests/lib/libc/sys/t_lwp_ctl.c
61
ATF_REQUIRE(nanosleep(&ts, 0) != -1);
tests/lib/libc/sys/t_nanosleep.c
105
struct timespec ts;
tests/lib/libc/sys/t_nanosleep.c
107
ts.tv_sec = 1;
tests/lib/libc/sys/t_nanosleep.c
108
ts.tv_nsec = -1;
tests/lib/libc/sys/t_nanosleep.c
110
ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1);
tests/lib/libc/sys/t_nanosleep.c
112
ts.tv_sec = 1;
tests/lib/libc/sys/t_nanosleep.c
113
ts.tv_nsec = 1000000000;
tests/lib/libc/sys/t_nanosleep.c
115
ATF_REQUIRE_ERRNO(EINVAL, nanosleep(&ts, NULL) == -1);
tests/lib/libc/sys/t_nanosleep.c
117
ts.tv_sec = -1;
tests/lib/libc/sys/t_nanosleep.c
118
ts.tv_nsec = 0;
tests/lib/libc/sys/t_nanosleep.c
120
ATF_REQUIRE_ERRNO(0, nanosleep(&ts, NULL) == 0);
tests/lib/libc/sys/t_recvmmsg.c
130
struct timespec ts = { 1, 0 };
tests/lib/libc/sys/t_recvmmsg.c
132
MSG_WAITALL, &ts);
tests/lib/libc/sys/t_select.c
116
if (pselect(1, &rset, NULL, NULL, ts, &set) == -1) {
tests/lib/libc/sys/t_select.c
122
if (ts)
tests/lib/libc/sys/t_select.c
88
child(const struct timespec *ts)
tests/lib/libc/sys/t_sigtimedwait.c
123
struct timespec ts;
tests/lib/libc/sys/t_sigtimedwait.c
128
ts.tv_sec = 5;
tests/lib/libc/sys/t_sigtimedwait.c
129
ts.tv_nsec = 0;
tests/lib/libc/sys/t_sigtimedwait.c
130
signo = sigtimedwait(&block, &info, &ts);
tests/lib/libc/sys/t_sigtimedwait.c
151
struct timespec ts;
tests/lib/libc/sys/t_sigtimedwait.c
158
ts.tv_sec = 5;
tests/lib/libc/sys/t_sigtimedwait.c
159
ts.tv_nsec = 0;
tests/lib/libc/sys/t_sigtimedwait.c
163
RL(signo = sigtimedwait(&block, &info, &ts));
tests/lib/libc/sys/t_sigtimedwait.c
181
struct timespec ts;
tests/lib/libc/sys/t_sigtimedwait.c
188
ts.tv_sec = 5;
tests/lib/libc/sys/t_sigtimedwait.c
189
ts.tv_nsec = 0;
tests/lib/libc/sys/t_sigtimedwait.c
197
signo = sigtimedwait(&sig, &info, &ts);
tests/lib/libc/sys/t_sigtimedwait.c
63
struct timespec ts, before, after, len;
tests/lib/libc/sys/t_sigtimedwait.c
68
ts.tv_sec = 0;
tests/lib/libc/sys/t_sigtimedwait.c
69
ts.tv_nsec = 0;
tests/lib/libc/sys/t_sigtimedwait.c
71
signo = sigtimedwait(&block, &info, &ts);
tests/lib/libc/sys/t_timerfd.c
512
const struct timespec ts = { .tv_sec = 0, .tv_nsec = 0 };
tests/lib/libc/sys/t_timerfd.c
527
ATF_REQUIRE(kevent(kq, kev, 1, NULL, 0, &ts) == 0);
tests/lib/libc/sys/t_timerfd.c
529
ATF_CHECK_ERRNO(EINVAL, kevent(kq, kev, 1, NULL, 0, &ts) == -1);
tests/lib/libc/sys/t_timerfd.c
596
ATF_REQUIRE(kevent(kq, NULL, 0, kev, 1, &ts) == 1);
tests/lib/libc/sys/t_timerfd.c
626
const struct timespec ts = { .tv_sec = 0, .tv_nsec = 0 };
tests/lib/libc/sys/t_timerfd.c
638
ATF_REQUIRE(kevent(kq, kev, 1, NULL, 0, &ts) == 0);
tests/lib/libcurses/director/testlang_parse.y
546
perform_delay(struct timespec *ts)
tests/lib/libcurses/director/testlang_parse.y
550
delay_copy = *ts;
tests/lib/libcurses/slave/curses_commands.c
2982
ARG_INT(ts);
tests/lib/libcurses/slave/curses_commands.c
2990
report_return(wborder(win, ls, rs, ts, bs, tl, tr, bl, br));
tests/lib/libcurses/slave/curses_commands.c
358
ARG_INT(ts);
tests/lib/libcurses/slave/curses_commands.c
366
report_return(border(ls, rs, ts, bs, tl, tr, bl, br));
tests/lib/libcurses/slave/curses_commands.c
4553
ARG_CCHAR_STRING(ts);
tests/lib/libcurses/slave/curses_commands.c
4561
report_return(border_set(ls, rs, ts, bs, tl, tr, bl, br));
tests/lib/libcurses/slave/curses_commands.c
4572
ARG_CCHAR_STRING(ts);
tests/lib/libcurses/slave/curses_commands.c
4580
report_return(wborder_set(win, ls, rs, ts, bs, tl, tr, bl, br));
tests/lib/libpthread/t_cnd.c
151
struct timespec ts;
tests/lib/libpthread/t_cnd.c
153
ts.tv_sec = 0;
tests/lib/libpthread/t_cnd.c
154
ts.tv_nsec = 1;
tests/lib/libpthread/t_cnd.c
160
ATF_REQUIRE_EQ(cnd_timedwait(&c, &m, &ts), thrd_timedout);
tests/lib/libpthread/t_cond.c
305
struct timespec ts;
tests/lib/libpthread/t_cond.c
314
(void)memset(&ts, 0, sizeof(struct timespec));
tests/lib/libpthread/t_cond.c
316
ATF_REQUIRE(clock_gettime(CLOCK_REALTIME, &ts) == 0);
tests/lib/libpthread/t_cond.c
323
ts.tv_sec = ts.tv_sec - 1;
tests/lib/libpthread/t_cond.c
326
rv = pthread_cond_timedwait(&static_cond, &static_mutex, &ts);
tests/lib/libpthread/t_cond.c
447
struct timespec ts;
tests/lib/libpthread/t_cond.c
457
TIMEVAL_TO_TIMESPEC(&tv, &ts);
tests/lib/libpthread/t_cond.c
460
&ts), ETIMEDOUT, "pthread_cond_timedwait() (unthreaded) in the "
tests/lib/libpthread/t_cond.c
466
TIMEVAL_TO_TIMESPEC(&tv, &ts);
tests/lib/libpthread/t_cond.c
469
&ts), ETIMEDOUT, "pthread_cond_timedwait() (unthreaded) with zero "
tests/lib/libpthread/t_cond.c
479
TIMEVAL_TO_TIMESPEC(&tv, &ts);
tests/lib/libpthread/t_cond.c
482
&ts), ETIMEDOUT, "pthread_cond_timedwait() (threaded) in the past");
tests/lib/libpthread/t_cond.c
487
TIMEVAL_TO_TIMESPEC(&tv, &ts);
tests/lib/libpthread/t_cond.c
490
&ts), ETIMEDOUT, "pthread_cond_timedwait() (threaded) with zero "
tests/lib/libpthread/t_condwait.c
53
struct timespec ts, to, te;
tests/lib/libpthread/t_condwait.c
68
ATF_REQUIRE_EQ(clock_gettime(clck, &ts), 0);
tests/lib/libpthread/t_condwait.c
69
to = ts;
tests/lib/libpthread/t_condwait.c
75
ts.tv_sec += WAITTIME; /* Timeout wait */
tests/lib/libpthread/t_condwait.c
77
switch (ret = pthread_cond_timedwait(&cond, &m, &ts)) {
tests/lib/libpthread/t_condwait.c
89
ATF_REQUIRE(timespeccmp(&te, &ts, >=));
tests/lib/libpthread/t_mtx.c
119
struct timespec ts;
tests/lib/libpthread/t_mtx.c
121
ts.tv_sec = 0;
tests/lib/libpthread/t_mtx.c
122
ts.tv_nsec = 1;
tests/lib/libpthread/t_mtx.c
125
ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_success);
tests/lib/libpthread/t_mtx.c
131
ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_timedout);
tests/lib/libpthread/t_mtx.c
137
ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_success);
tests/lib/libpthread/t_mtx.c
143
ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_success);
tests/lib/libpthread/t_mtx.c
144
ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_success);
tests/lib/libpthread/t_mtx.c
150
ATF_REQUIRE_EQ(mtx_timedlock(&m, &ts), thrd_success);
tests/lib/libpthread/t_mutex.c
66
mutex_lock(pthread_mutex_t *m, const struct timespec *ts)
tests/lib/libpthread/t_mutex.c
70
timespecadd(&ts_wait, ts, &ts_wait);
tests/lib/libpthread/t_thrd.c
176
struct timespec ts, rem;
tests/lib/libpthread/t_thrd.c
184
ts.tv_sec = 1;
tests/lib/libpthread/t_thrd.c
185
ts.tv_nsec = -1;
tests/lib/libpthread/t_thrd.c
186
ATF_REQUIRE_EQ(!thrd_sleep(&ts, NULL), 0);
tests/lib/libpthread/t_thrd.c
188
ts.tv_sec = 0;
tests/lib/libpthread/t_thrd.c
189
ts.tv_nsec = 1000000000/100; /* 1/100 sec */
tests/lib/libpthread/t_thrd.c
191
ATF_REQUIRE_EQ(thrd_sleep(&ts, &rem), 0);
tests/lib/libpthread/t_thrd.c
194
ATF_REQUIRE(timespeccmp(&diff, &ts, >=));
tests/lib/libpthread/t_thrd.c
197
ts.tv_sec = 1;
tests/lib/libpthread/t_thrd.c
198
ts.tv_nsec = 0;
tests/lib/libpthread/t_thrd.c
207
ATF_REQUIRE_EQ(!thrd_sleep(&ts, &rem), 0);
tests/lib/libpthread/t_thrd.c
210
ATF_REQUIRE(timespeccmp(&diff, &ts, <));
tests/net/mcast/mcast.c
184
msg->ts.tv_sec, msg->ts.tv_nsec);
tests/net/mcast/mcast.c
285
if (clock_gettime(CLOCK_MONOTONIC, &msg.ts) == -1)
tests/net/mcast/mcast.c
291
msg.ts.tv_sec = tv.tv_sec;
tests/net/mcast/mcast.c
292
msg.ts.tv_nsec = tv.tv_usec * 1000;
tests/net/mcast/mcast.c
88
struct timespec ts;
tests/net/net/t_ip_reass.c
143
struct timespec ts;
tests/net/net/t_ip_reass.c
157
ts.tv_sec = 0;
tests/net/net/t_ip_reass.c
158
ts.tv_nsec = 5000000; /* 5ms */
tests/net/net/t_ip_reass.c
159
(void)nanosleep(&ts, NULL);
tests/net/net/t_tcp.c
177
struct timespec ts;
tests/net/net/t_tcp.c
178
ts.tv_sec = 0;
tests/net/net/t_tcp.c
179
ts.tv_nsec = 1000000;
tests/net/net/t_tcp.c
180
nanosleep(&ts, NULL);
usr.bin/cdplay/cdplay.c
645
u_int n, tr1, tr2, m1, m2, s1, s2, f1, f2, tm, ts, tf;
usr.bin/cdplay/cdplay.c
771
toc2msf(tr1-1, &tm, &ts, &tf);
usr.bin/cdplay/cdplay.c
772
addmsf(&m1, &s1, &f1, tm, ts, tf);
usr.bin/cdplay/cdplay.c
774
toc2msf(tr1, &tm, &ts, &tf);
usr.bin/cdplay/cdplay.c
776
if ((m1 > tm) || ((m1 == tm) && ((s1 > ts) || ((s1 == ts) &&
usr.bin/cdplay/cdplay.c
802
toc2msf(tr2, &tm, &ts, &tf);
usr.bin/cdplay/cdplay.c
803
addmsf(&m2, &s2, &f2, tm, ts, tf);
usr.bin/cdplay/cdplay.c
807
toc2msf(n, &tm, &ts, &tf);
usr.bin/cdplay/cdplay.c
809
if ((tr2 < n) && ((m2 > tm) || ((m2 == tm) && ((s2 > ts) ||
usr.bin/cdplay/cdplay.c
810
((s2 == ts) && (f2 > tf)))))) {
usr.bin/cdplay/cdplay.c
835
lba2msf(toc_buffer[n].addr.lba, &tm, &ts, &tf);
usr.bin/cdplay/cdplay.c
837
s2 = ts;
usr.bin/gzip/gzip.c
1504
unsigned char ts[4]; /* timestamp */
usr.bin/gzip/gzip.c
1506
rv = pread(fd, ts, sizeof ts, GZIP_TIMESTAMP);
usr.bin/gzip/gzip.c
1507
if (rv >= 0 && rv < (ssize_t)(sizeof ts))
usr.bin/gzip/gzip.c
1515
timestamp = ts[3] << 24 | ts[2] << 16 | ts[1] << 8 | ts[0];
usr.bin/gzip/gzip.c
2220
print_list(int fd, off_t out, const char *outfile, time_t ts)
usr.bin/gzip/gzip.c
2280
char *date = ctime(&ts);
usr.bin/kdump/kdump.c
528
output_ts(const struct timespec *ts)
usr.bin/kdump/kdump.c
532
if (__predict_true(ts->tv_sec >= 0))
usr.bin/kdump/kdump.c
534
(long long)ts->tv_sec, (long)ts->tv_nsec);
usr.bin/kdump/kdump.c
549
timespecsub(&zero_ts, ts, &abs_ts);
usr.bin/ktruss/dump.c
349
struct timespec ts;
usr.bin/ktruss/dump.c
373
if (prevtime.ts.tv_sec == 0)
usr.bin/ktruss/dump.c
374
temp.ts.tv_sec = temp.ts.tv_nsec = 0;
usr.bin/ktruss/dump.c
377
&prevtime.ts, &temp.ts);
usr.bin/ktruss/dump.c
378
prevtime.ts.tv_sec = kth->ktr_ots.tv_sec;
usr.bin/ktruss/dump.c
379
prevtime.ts.tv_nsec = kth->ktr_ots.tv_nsec;
usr.bin/ktruss/dump.c
383
if (prevtime.ts.tv_sec == 0)
usr.bin/ktruss/dump.c
384
temp.ts.tv_sec = temp.ts.tv_nsec = 0;
usr.bin/ktruss/dump.c
387
&prevtime.ts, &temp.ts);
usr.bin/ktruss/dump.c
388
prevtime.ts.tv_sec = kth->ktr_ts.tv_sec;
usr.bin/ktruss/dump.c
389
prevtime.ts.tv_nsec = kth->ktr_ts.tv_nsec;
usr.bin/ktruss/dump.c
399
temp.ts.tv_sec = kth->ktr_ots.tv_sec;
usr.bin/ktruss/dump.c
400
temp.ts.tv_nsec = kth->ktr_ots.tv_nsec;
usr.bin/ktruss/dump.c
403
temp.ts.tv_sec = kth->ktr_ts.tv_sec;
usr.bin/ktruss/dump.c
404
temp.ts.tv_nsec = kth->ktr_ts.tv_nsec;
usr.bin/ktruss/dump.c
413
(long long)temp.ts.tv_sec, (long)temp.ts.tv_nsec);
usr.bin/netstat/if.c
117
struct ttysize ts;
usr.bin/netstat/if.c
122
if (ioctl(STDOUT_FILENO, TIOCGSIZE, &ts) != -1 && ts.ts_lines)
usr.bin/netstat/if.c
123
redraw_lines = ts.ts_lines - 3;
usr.bin/progress/progress.c
202
if (ioctl(fileno(ttyout), TIOCGSIZE, &ts) == -1)
usr.bin/progress/progress.c
205
ttywidth = ts.ts_cols;
usr.bin/progress/progress.c
90
struct ttysize ts;
usr.bin/pwait/pwait.c
113
ts.tv_sec = (time_t)timeout;
usr.bin/pwait/pwait.c
114
timeout -= (double)ts.tv_sec;
usr.bin/pwait/pwait.c
115
ts.tv_nsec = (long)(timeout * 1000000000L);
usr.bin/pwait/pwait.c
116
while (ts.tv_nsec < 0) {
usr.bin/pwait/pwait.c
117
ts.tv_sec--;
usr.bin/pwait/pwait.c
118
ts.tv_nsec += 1000000000L;
usr.bin/pwait/pwait.c
120
tsp = &ts;
usr.bin/pwait/pwait.c
81
struct timespec ts, *tsp;
usr.bin/resize/resize.c
342
TTYSIZE_STRUCT ts;
usr.bin/resize/resize.c
519
if (sscanf(buf, wsize[emu], &ts.ws_xpixel, &ts.ws_ypixel) != 2) {
usr.bin/resize/resize.c
523
setup_winsize(ts, rows, cols, 0, 0);
usr.bin/resize/resize.c
524
SET_TTYSIZE(tty, ts);
usr.bin/resize/resize.c
525
} else if (ioctl(tty, TIOCGWINSZ, &ts) != -1) {
usr.bin/resize/resize.c
531
setup_winsize(ts, rows, cols,
usr.bin/resize/resize.c
532
scaled(TTYSIZE_ROWS(ts), rows, ts.ws_ypixel),
usr.bin/resize/resize.c
533
scaled(TTYSIZE_COLS(ts), cols, ts.ws_xpixel));
usr.bin/resize/resize.c
534
SET_TTYSIZE(tty, ts);
usr.bin/rlogin/rlogin.c
784
struct ttysize ts;
usr.bin/rlogin/rlogin.c
787
if ((error = ioctl(0, TIOCGSIZE, &ts)) != 0)
usr.bin/rlogin/rlogin.c
789
wp->ws_row = ts.ts_lines;
usr.bin/rlogin/rlogin.c
790
wp->ws_col = ts.ts_cols;
usr.bin/rump_dhcpclient/common.c
100
tp->tv_usec = ts.tv_nsec / 1000;
usr.bin/rump_dhcpclient/common.c
87
struct timespec ts;
usr.bin/rump_dhcpclient/common.c
91
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {
usr.bin/rump_dhcpclient/common.c
98
if (clock_gettime(posix_clock, &ts) == 0) {
usr.bin/rump_dhcpclient/common.c
99
tp->tv_sec = ts.tv_sec;
usr.bin/scmdctl/scmdctl.c
126
struct timespec ts;
usr.bin/scmdctl/scmdctl.c
140
ts.tv_sec = 0;
usr.bin/scmdctl/scmdctl.c
141
ts.tv_nsec = 50;
usr.bin/scmdctl/scmdctl.c
142
nanosleep(&ts,NULL);
usr.bin/scmdctl/uart.c
155
struct timespec ts;
usr.bin/scmdctl/uart.c
189
ts.tv_sec = 0;
usr.bin/scmdctl/uart.c
190
ts.tv_nsec = 50;
usr.bin/scmdctl/uart.c
191
nanosleep(&ts,NULL);
usr.bin/scmdctl/uart.c
208
ts.tv_sec = 0;
usr.bin/scmdctl/uart.c
209
ts.tv_nsec = 50;
usr.bin/scmdctl/uart.c
210
nanosleep(&ts,NULL);
usr.bin/scmdctl/uart.c
230
ts.tv_sec = 0;
usr.bin/scmdctl/uart.c
231
ts.tv_nsec = 50;
usr.bin/scmdctl/uart.c
232
nanosleep(&ts,NULL);
usr.bin/scmdctl/uart.c
250
struct timespec ts;
usr.bin/scmdctl/uart.c
295
ts.tv_sec = 0;
usr.bin/scmdctl/uart.c
296
ts.tv_nsec = 50;
usr.bin/scmdctl/uart.c
297
nanosleep(&ts,NULL);
usr.bin/scmdctl/uart.c
485
struct timespec ts;
usr.bin/scmdctl/uart.c
505
ts.tv_sec = 0;
usr.bin/scmdctl/uart.c
506
ts.tv_nsec = 50;
usr.bin/scmdctl/uart.c
507
nanosleep(&ts,NULL);
usr.bin/shmif_dumpbus/shmif_dumpbus.c
275
packhdr.ts.tv_sec = sp_sec;
usr.bin/shmif_dumpbus/shmif_dumpbus.c
276
packhdr.ts.tv_usec = (suseconds_t)sp_usec;
usr.bin/time/time.c
208
prts(const char *pre, const char *decpt, const struct timespec *ts,
usr.bin/time/time.c
212
(void)fprintf(stderr, "%s%9lld%s%02ld%s", pre, (long long)ts->tv_sec,
usr.bin/time/time.c
213
decpt, (long)ts->tv_nsec / 10000000, post);
usr.bin/touch/touch.c
102
if (clock_gettime(CLOCK_REALTIME, &ts[0]))
usr.bin/touch/touch.c
119
if (!stime_posix(optarg, ts))
usr.bin/touch/touch.c
120
stime_arg0(optarg, ts);
usr.bin/touch/touch.c
132
stime_file(optarg, ts, lstat);
usr.bin/touch/touch.c
136
stime_file(optarg, ts, stat);
usr.bin/touch/touch.c
140
stime_arg1(optarg, ts);
usr.bin/touch/touch.c
171
stime_arg2(*argv++, len == 10, ts);
usr.bin/touch/touch.c
177
ts[1] = ts[0];
usr.bin/touch/touch.c
202
ts[0] = sb.st_atimespec;
usr.bin/touch/touch.c
204
ts[1] = sb.st_mtimespec;
usr.bin/touch/touch.c
207
timespeccmp(&ts[0], &sb.st_atimespec, ==) &&
usr.bin/touch/touch.c
208
timespeccmp(&ts[1], &sb.st_mtimespec, ==))
usr.bin/touch/touch.c
212
if (!(*change_file_times)(*argv, ts))
usr.bin/touch/touch.c
93
struct timespec ts[2];
usr.bin/uniq/uniq.c
162
size_t ts;
usr.bin/uniq/uniq.c
168
ts = prevlinesize;
usr.bin/uniq/uniq.c
170
thislinesize = ts;
usr.bin/utoppya/utoppya.c
322
struct ttysize ts;
usr.bin/utoppya/utoppya.c
324
if (ioctl(fileno(to), TIOCGSIZE, &ts) == -1)
usr.bin/utoppya/utoppya.c
327
ttywidth = ts.ts_cols;
usr.bin/xlint/lint1/emit1.c
100
ts = ENUM;
usr.bin/xlint/lint1/emit1.c
101
lint_assert(tt[ts] != '?' && ss[ts] != '?');
usr.bin/xlint/lint1/emit1.c
106
if (ss[ts] != ' ')
usr.bin/xlint/lint1/emit1.c
107
outchar(ss[ts]);
usr.bin/xlint/lint1/emit1.c
108
outchar(tt[ts]);
usr.bin/xlint/lint1/emit1.c
110
if (ts == ARRAY) {
usr.bin/xlint/lint1/emit1.c
112
} else if (ts == ENUM) {
usr.bin/xlint/lint1/emit1.c
115
} else if (is_struct_or_union(ts)) {
usr.bin/xlint/lint1/emit1.c
118
} else if (ts == FUNC && tp->t_proto) {
usr.bin/xlint/lint1/emit1.c
96
tspec_t ts;
usr.bin/xlint/lint1/emit1.c
99
if ((ts = tp->t_tspec) == INT && tp->t_is_enum)
usr.bin/xlint/lint2/emit2.c
52
tspec_t ts = tp->t_tspec;
usr.bin/xlint/lint2/emit2.c
53
if (ts == INT && tp->t_is_enum)
usr.bin/xlint/lint2/emit2.c
54
ts = ENUM;
usr.bin/xlint/lint2/emit2.c
55
if (!ch_isupper(tt[ts]))
usr.bin/xlint/lint2/emit2.c
56
errx(1, "internal error: outtype(%d)", ts);
usr.bin/xlint/lint2/emit2.c
61
if (ss[ts] != ' ')
usr.bin/xlint/lint2/emit2.c
62
outchar(ss[ts]);
usr.bin/xlint/lint2/emit2.c
63
if (ts == FUNC && tp->t_args != NULL && !tp->t_proto)
usr.bin/xlint/lint2/emit2.c
66
outchar(tt[ts]);
usr.bin/xlint/lint2/emit2.c
68
if (ts == ARRAY) {
usr.bin/xlint/lint2/emit2.c
70
} else if (ts == ENUM || ts == STRUCT || ts == UNION) {
usr.bin/xlint/lint2/emit2.c
86
} else if (ts == FUNC && tp->t_args != NULL) {
usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
853
static size_t ts = 0;
usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
901
myHeader.ts3 = (uint8_t)(ts >> 24);
usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
902
myHeader.ts2 = (uint8_t)(ts >> 16);
usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
903
myHeader.ts1 = (uint8_t)(ts >> 8);
usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
904
myHeader.ts0 = (uint8_t)ts;
usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
987
ts += (1000000 * (size_t)(global_blocks * global_bands)
usr.sbin/btconfig/btconfig.c
478
static const struct timespec ts = { 0, 100000000 }; /* 100ms */
usr.sbin/btconfig/btconfig.c
487
nanosleep(&ts, NULL);
usr.sbin/cnwctl/cnwctl.c
224
if (ioctl(0, TIOCGWINSZ, &ts) < 0)
usr.sbin/cnwctl/cnwctl.c
225
ts.ts_lines = 24;
usr.sbin/cnwctl/cnwctl.c
231
c = ts.ts_lines - 3;
usr.sbin/cnwctl/cnwctl.c
251
c = ts.ts_lines - 3;
usr.sbin/cnwctl/cnwctl.c
68
struct ttysize ts;
usr.sbin/cpuctl/cpuctl.c
321
char ibuf[16], *ts;
usr.sbin/cpuctl/cpuctl.c
351
ts = asctime(localtime(&lastmod));
usr.sbin/cpuctl/cpuctl.c
352
ts[strlen(ts) - 1] = '\0';
usr.sbin/cpuctl/cpuctl.c
355
intr, ts, ibuf);
usr.sbin/fstyp/hammer_disk.h
1054
uint64_t ts; /* real-time when snapshot was made */
usr.sbin/inetd/ratelimit.c
228
struct timespec ts;
usr.sbin/inetd/ratelimit.c
229
if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1) {
usr.sbin/inetd/ratelimit.c
235
return ts.tv_sec;
usr.sbin/iostat/iostat.c
209
struct ttysize ts;
usr.sbin/iostat/iostat.c
303
if (ioctl(STDOUT_FILENO, TIOCGSIZE, &ts) != -1) {
usr.sbin/iostat/iostat.c
304
if (ts.ts_lines)
usr.sbin/iostat/iostat.c
305
winlines = ts.ts_lines;
usr.sbin/iostat/iostat.c
306
if (ts.ts_cols)
usr.sbin/iostat/iostat.c
307
wincols = ts.ts_cols;
usr.sbin/nvmmctl/nvmmctl.c
147
char ram[4+1], *ts;
usr.sbin/nvmmctl/nvmmctl.c
169
ts = asctime(localtime(&machinfo.time));
usr.sbin/nvmmctl/nvmmctl.c
170
ts[strlen(ts) - 1] = '\0';
usr.sbin/nvmmctl/nvmmctl.c
177
machinfo.pid, ts);
usr.sbin/syslogd/syslogd.c
5005
char *ts;
usr.sbin/syslogd/syslogd.c
5007
ts = make_timestamp(NULL, true, (size_t)-1);
usr.sbin/syslogd/syslogd.c
5008
printf("%s:%s:%s:%.4zu\t", ts, fname, funname, lnum);
usr.sbin/tprof/tprof.c
244
struct timespec ts;
usr.sbin/tprof/tprof.c
248
ts.tv_sec = ival;
usr.sbin/tprof/tprof.c
249
ts.tv_nsec = fval;
usr.sbin/tprof/tprof.c
253
nanosleep(&ts, NULL);
usr.sbin/tprof/tprof.c
391
struct tprof_stat ts;
usr.sbin/tprof/tprof.c
523
ret = ioctl(devfd, TPROF_IOC_GETSTAT, &ts);
usr.sbin/tprof/tprof.c
528
fprintf(stderr, "\tsample %" PRIu64 "\n", ts.ts_sample);
usr.sbin/tprof/tprof.c
529
fprintf(stderr, "\toverflow %" PRIu64 "\n", ts.ts_overflow);
usr.sbin/tprof/tprof.c
530
fprintf(stderr, "\tbuf %" PRIu64 "\n", ts.ts_buf);
usr.sbin/tprof/tprof.c
531
fprintf(stderr, "\temptybuf %" PRIu64 "\n", ts.ts_emptybuf);
usr.sbin/tprof/tprof.c
532
fprintf(stderr, "\tdropbuf %" PRIu64 "\n", ts.ts_dropbuf);
usr.sbin/tprof/tprof.c
534
ts.ts_dropbuf_sample);
usr.sbin/tprof/tprof_top.c
545
static struct tprof_stat tsbuf[2], *ts0, *ts;
usr.sbin/tprof/tprof_top.c
552
ts = &tsbuf[ts_i & 1];
usr.sbin/tprof/tprof_top.c
553
ret = ioctl(devfd, TPROF_IOC_GETSTAT, ts);
usr.sbin/tprof/tprof_top.c
561
l = snprintf(tmpbuf, sizeof(tmpbuf), "%"PRIu64, ts->_m);\
usr.sbin/tprof/tprof_top.c
562
if (ts->_m != ts0->_m) \
usr.sbin/tprof/tprof_top.c
564
"(+%"PRIu64")", ts->_m - ts0->_m); \
usr.sbin/wlanctl/wlanctl.c
200
u_int64_t ts;
usr.sbin/wlanctl/wlanctl.c
271
assert(sizeof(ts) == sizeof(pns->ns_tstamp));
usr.sbin/wlanctl/wlanctl.c
272
memcpy(&ts, &pns->ns_tstamp[0], sizeof(ts));
usr.sbin/wlanctl/wlanctl.c
274
pns->ns_intval, (u_int64_t)le64toh(ts));