bin/date/netdate.c
63
tsp_type_to_string(const struct tsp *msg)
bin/date/netdate.c
82
struct tsp msg;
games/monop/getinp.c
106
const char *sp, *tsp;
games/monop/getinp.c
110
for (sp = buf, tsp = s1; *sp; ) {
games/monop/getinp.c
111
c = tolower((unsigned char)*tsp);
games/monop/getinp.c
112
tsp++;
lib/libc/compat/sys/compat___lwp_park50.c
56
struct timespec ts1, *tsp = &ts1;
lib/libc/compat/sys/compat___lwp_park50.c
60
tsp = NULL;
lib/libc/compat/sys/compat___lwp_park50.c
61
return ___lwp_park60(CLOCK_REALTIME, TIMER_ABSTIME, tsp, unpark,
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__lwp_park.c
64
tsp = NULL;
lib/libc/compat/sys/compat__lwp_park.c
65
return ___lwp_park50(tsp, unpark, hint, unparkhint);
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_adjtime.c
70
tsp = NULL;
lib/libc/compat/sys/compat_adjtime.c
71
error = __adjtime50(tsp, rtsp);
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_aio_suspend.c
68
tsp = NULL;
lib/libc/compat/sys/compat_aio_suspend.c
69
return __aio_suspend50(list, nent, tsp);
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_kevent.c
65
tsp = NULL;
lib/libc/compat/sys/compat_kevent.c
66
return __kevent50(kq, changelist, nchanges, eventlist, nevents, tsp);
lib/libc/compat/sys/compat_kevent.c
71
struct kevent100 *eventlist100, size_t nevents, const struct timespec *tsp)
lib/libc/compat/sys/compat_kevent.c
91
retval = __kevent100(kq, changelist, nchanges, eventlist, nevents, tsp);
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_lfs_segwait.c
62
tsp = NULL;
lib/libc/compat/sys/compat_lfs_segwait.c
63
return __lfs_segwait50(fsid, tsp);
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
71
tsp = NULL;
lib/libc/compat/sys/compat_mqueue.c
72
return __mq_timedreceive50(mq, name, len, buf, tsp);
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_mqueue.c
84
tsp = NULL;
lib/libc/compat/sys/compat_mqueue.c
85
return __mq_timedsend50(mq, name, len, buf, tsp);
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_nanosleep.c
70
tsp = NULL;
lib/libc/compat/sys/compat_nanosleep.c
71
error = __nanosleep50(tsp, rtsp);
lib/libc/resolv/res_send.c
1205
struct timespec *tsp, const sigset_t *sigmask)
lib/libc/resolv/res_send.c
1211
if (tsp) {
lib/libc/resolv/res_send.c
1213
tv = evTimeVal(*tsp);
lib/libc/resolv/res_send.c
1221
if (tsp)
lib/libc/resolv/res_send.c
1222
*tsp = evTimeSpec(tv);
lib/libc/sys/epoll.c
59
struct timespec ts, *tsp;
lib/libc/sys/epoll.c
64
tsp = &ts;
lib/libc/sys/epoll.c
66
tsp = NULL;
lib/libc/sys/epoll.c
68
return epoll_pwait2(epfd, events, maxevents, tsp, sigmask);
lib/libcurses/border.c
164
cchar_t *lsp, *rsp, *tsp, *bsp, *tlp, *trp, *blp, *brp;
lib/libcurses/border.c
184
return wborder_set(win, lsp, rsp, tsp, bsp, tlp, trp, blp, brp);
lib/libform/internals.c
3371
_formi_tab_t *ts = row->tabs, *old_ts = NULL, **tsp;
lib/libform/internals.c
3385
tsp = &row->tabs;
lib/libform/internals.c
3388
if (*tsp == NULL) {
lib/libform/internals.c
3389
if ((*tsp = malloc(sizeof(**tsp))) == NULL)
lib/libform/internals.c
3391
(*tsp)->back = old_ts;
lib/libform/internals.c
3392
(*tsp)->fwd = NULL;
lib/libform/internals.c
3395
(*tsp)->in_use = TRUE;
lib/libform/internals.c
3396
(*tsp)->pos = i;
lib/libform/internals.c
3397
(*tsp)->size = 8 - (j % 8);
lib/libform/internals.c
3398
j += (*tsp)->size - 1;
lib/libform/internals.c
3399
old_ts = *tsp;
lib/libform/internals.c
3400
tsp = &(*tsp)->fwd;
lib/librumphijack/hijack.c
2122
struct timespec ts, *tsp = NULL;
lib/librumphijack/hijack.c
2125
tsp = &ts;
lib/librumphijack/hijack.c
2127
return REALPSELECT(nfds, readfds, writefds, exceptfds, tsp, NULL);
lib/librumphijack/hijack.c
2385
struct timespec *tsp = NULL;
lib/librumphijack/hijack.c
2391
tsp = &ts;
lib/librumphijack/hijack.c
2394
return REALPOLLTS(fds, nfds, tsp, NULL);
sbin/sysctl/sysctl.c
599
char *sp, *dp, *tsp, *tdp;
sbin/sysctl/sysctl.c
602
sp = tsp = &gsname[strlen(gsname)];
sbin/sysctl/sysctl.c
619
appendprintf(&tsp, &lsp, "%s%s", namelen > 1 ? sep : "",
sys/arch/alpha/alpha/dec_6600.c
107
struct tsp_config *tsp;
sys/arch/alpha/alpha/dec_6600.c
116
tsp = tsp_init(tsp_console_hose);
sys/arch/alpha/alpha/dec_6600.c
118
isa_iot = &tsp->pc_iot;
sys/arch/alpha/alpha/dec_6600.c
119
isa_memt = &tsp->pc_memt;
sys/arch/alpha/alpha/dec_6600.c
131
tsp = tsp_init(tsp_console_hose);
sys/arch/alpha/alpha/dec_6600.c
140
pci_consinit(&tsp->pc_pc, &tsp->pc_iot, &tsp->pc_memt,
sys/arch/alpha/alpha/dec_6600.c
188
struct tsp_attach_args *tsp = aux;
sys/arch/alpha/alpha/dec_6600.c
190
if (b->bus == tsp->tsp_slot) {
sys/arch/alpha/pci/tsc.c
116
struct tsp_attach_args tsp;
sys/arch/alpha/pci/tsc.c
139
memset(&tsp, 0, sizeof tsp);
sys/arch/alpha/pci/tsc.c
140
tsp.tsp_name = "tsp";
sys/arch/alpha/pci/tsc.c
141
tsp.tsp_slot = 0;
sys/arch/alpha/pci/tsc.c
143
config_found(self, &tsp, tscprint, CFARGS_NONE);
sys/arch/alpha/pci/tsc.c
145
tsp.tsp_slot += 2;
sys/arch/alpha/pci/tsc.c
146
config_found(self, &tsp, tscprint, CFARGS_NONE);
sys/arch/alpha/pci/tsc.c
150
tsp.tsp_slot = 1;
sys/arch/alpha/pci/tsc.c
151
config_found(self, &tsp, tscprint, CFARGS_NONE);
sys/arch/alpha/pci/tsc.c
153
tsp.tsp_slot += 2;
sys/arch/alpha/pci/tsc.c
154
config_found(self, &tsp, tscprint, CFARGS_NONE);
sys/arch/alpha/pci/tsc.c
167
struct tsp_attach_args *tsp = aux;
sys/arch/alpha/pci/tsc.c
170
aprint_normal("%s%d at %s", tsp->tsp_name, tsp->tsp_slot, p);
sys/arch/alpha/pci/tsc.c
277
struct tsp_config *tsp = &tsp_configuration[tsp_console_hose];
sys/arch/alpha/pci/tsc.c
283
st = &tsp->pc_iot;
sys/arch/alpha/pci/tsc.c
287
st = &tsp->pc_memt;
sys/arch/alpha/pci/tsc.c
71
CFATTACH_DECL_NEW(tsp, 0, tspmatch, tspattach, NULL, NULL);
sys/arch/alpha/pci/tsp_bus_io.c
52
#define CHIP tsp
sys/arch/alpha/pci/tsp_bus_mem.c
51
#define CHIP tsp
sys/arch/sparc64/sparc64/db_interface.c
834
(unsigned long long)te->tfault, (unsigned long long)te->tsp,
sys/arch/sparc64/sparc64/db_interface.c
89
u_int tsp; /* sp */
sys/arch/xen/xen/xen_clock.c
1115
xen_wallclock_time(struct timespec *tsp)
sys/arch/xen/xen/xen_clock.c
1124
tsp->tv_sec = HYPERVISOR_shared_info->wc_sec;
sys/arch/xen/xen/xen_clock.c
1125
tsp->tv_nsec = HYPERVISOR_shared_info->wc_nsec;
sys/arch/xen/xen/xen_clock.c
1133
systime_ns += tsp->tv_nsec;
sys/arch/xen/xen/xen_clock.c
1134
tsp->tv_sec += systime_ns / 1000000000ull;
sys/arch/xen/xen/xen_clock.c
1135
tsp->tv_nsec = systime_ns % 1000000000ull;
sys/compat/common/kern_50.c
68
struct timespec ts, *tsp;
sys/compat/common/kern_50.c
73
tsp = NULL;
sys/compat/common/kern_50.c
79
tsp = &ts;
sys/compat/common/kern_50.c
88
return lwp_park(CLOCK_REALTIME, TIMER_ABSTIME, tsp);
sys/compat/common/kern_time_50.c
398
struct timespec ts, *tsp;
sys/compat/common/kern_time_50.c
407
tsp = &ts;
sys/compat/common/kern_time_50.c
409
tsp = NULL;
sys/compat/common/kern_time_50.c
413
SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp);
sys/compat/common/kern_time_50.c
431
struct timespec ts, *tsp;
sys/compat/common/kern_time_50.c
443
tsp = &ts;
sys/compat/common/kern_time_50.c
445
tsp = NULL;
sys/compat/common/kern_time_50.c
449
SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp, &mlen);
sys/compat/common/kern_time_60.c
66
struct timespec ts, *tsp;
sys/compat/common/kern_time_60.c
69
tsp = NULL;
sys/compat/common/kern_time_60.c
74
tsp = &ts;
sys/compat/common/kern_time_60.c
83
return lwp_park(CLOCK_REALTIME, TIMER_ABSTIME, tsp);
sys/compat/linux/common/linux_misc.c
1043
struct timespec uts, ts0, ts1, *tsp;
sys/compat/linux/common/linux_misc.c
1075
tsp = &uts;
sys/compat/linux/common/linux_misc.c
1077
tsp = NULL;
sys/compat/linux/common/linux_misc.c
1081
SCARG(uap, writefds), SCARG(uap, exceptfds), tsp, ssp);
sys/compat/linux/common/linux_misc.c
1083
if (error == 0 && tsp != NULL) {
sys/compat/linux/common/linux_misc.c
1615
linux_do_sys_utimensat(struct lwp *l, int fd, const char *path, struct timespec *tsp, int flags, register_t *retval)
sys/compat/linux/common/linux_misc.c
1628
tsp, UIO_SYSSPACE);
sys/compat/linux/common/linux_misc.c
1633
return do_sys_utimensat(l, fd, NULL, path, follow, tsp, UIO_SYSSPACE);
sys/compat/linux/common/linux_misc.c
1648
struct timespec *tsp = NULL, ts[2];
sys/compat/linux/common/linux_misc.c
1656
tsp = ts;
sys/compat/linux/common/linux_misc.c
1660
tsp, SCARG(uap, flag), retval);
sys/compat/linux/common/linux_misc.c
1676
struct timespec ts, *tsp = NULL;
sys/compat/linux/common/linux_misc.c
1693
tsp = &ts;
sys/compat/linux/common/linux_misc.c
1699
SCARG(uap, val), tsp, SCARG(uap, uaddr2), val2,
sys/compat/linux/common/linux_misc.c
1892
struct timespec ts, *tsp;
sys/compat/linux/common/linux_misc.c
1904
tsp = &ts;
sys/compat/linux/common/linux_misc.c
1906
tsp = NULL;
sys/compat/linux/common/linux_misc.c
1920
error = epoll_wait_common(l, retval, epfd, eep, maxevents, tsp,
sys/compat/linux/common/linux_mqueue.c
129
struct timespec ts, *tsp;
sys/compat/linux/common/linux_mqueue.c
138
tsp = &ts;
sys/compat/linux/common/linux_mqueue.c
140
tsp = NULL;
sys/compat/linux/common/linux_mqueue.c
144
SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp);
sys/compat/linux/common/linux_mqueue.c
160
struct timespec ts, *tsp;
sys/compat/linux/common/linux_mqueue.c
170
tsp = &ts;
sys/compat/linux/common/linux_mqueue.c
172
tsp = NULL;
sys/compat/linux/common/linux_mqueue.c
176
SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp, &mlen);
sys/compat/linux32/common/linux32_misc.c
246
struct timespec ts, *tsp = NULL;
sys/compat/linux32/common/linux32_misc.c
263
tsp = &ts;
sys/compat/linux32/common/linux32_misc.c
269
SCARG(uap, val), tsp, SCARG_P32(uap, uaddr2), val2,
sys/compat/linux32/common/linux32_unistd.c
241
struct timespec uts, ts0, ts1, *tsp;
sys/compat/linux32/common/linux32_unistd.c
274
tsp = &uts;
sys/compat/linux32/common/linux32_unistd.c
276
tsp = NULL;
sys/compat/linux32/common/linux32_unistd.c
280
SCARG_P32(uap, writefds), SCARG_P32(uap, exceptfds), tsp, ssp);
sys/compat/linux32/common/linux32_unistd.c
282
if (error == 0 && tsp != NULL) {
sys/compat/linux32/common/linux32_unistd.c
508
struct timespec *tsp = NULL, ts[2];
sys/compat/linux32/common/linux32_unistd.c
516
tsp = ts;
sys/compat/linux32/common/linux32_unistd.c
520
tsp, SCARG(uap, flag), retval);
sys/compat/netbsd32/netbsd32_compat_50.c
557
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_compat_50.c
562
tsp = NULL;
sys/compat/netbsd32/netbsd32_compat_50.c
568
tsp = &ts;
sys/compat/netbsd32/netbsd32_compat_50.c
577
return lwp_park(CLOCK_REALTIME, TIMER_ABSTIME, tsp);
sys/compat/netbsd32/netbsd32_compat_60.c
58
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_compat_60.c
63
tsp = NULL;
sys/compat/netbsd32/netbsd32_compat_60.c
69
tsp = &ts;
sys/compat/netbsd32/netbsd32_compat_60.c
78
return lwp_park(CLOCK_REALTIME, TIMER_ABSTIME, tsp);
sys/compat/netbsd32/netbsd32_epoll.c
115
tsp = &ts;
sys/compat/netbsd32/netbsd32_epoll.c
117
tsp = NULL;
sys/compat/netbsd32/netbsd32_epoll.c
131
maxevents, tsp, ssp);
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
1344
SCARG_P32(uap, path), follow, tsp, UIO_SYSSPACE);
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
1443
tsp, UIO_SYSSPACE);
sys/compat/netbsd32/netbsd32_fs.c
355
struct timespec **tsp)
sys/compat/netbsd32/netbsd32_fs.c
361
*tsp = NULL;
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
74
tsp = &ts;
sys/compat/netbsd32/netbsd32_futex.c
76
tsp = NULL;
sys/compat/netbsd32/netbsd32_futex.c
80
SCARG(uap, val), tsp, SCARG_P32(uap, uaddr2), SCARG(uap, val2),
sys/compat/netbsd32/netbsd32_lwp.c
171
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_lwp.c
177
tsp = NULL;
sys/compat/netbsd32/netbsd32_lwp.c
183
tsp = &ts;
sys/compat/netbsd32/netbsd32_lwp.c
192
ret = lwp_park(SCARG(uap, clock_id), SCARG(uap, flags), tsp);
sys/compat/netbsd32/netbsd32_mqueue.c
269
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_mqueue.c
280
tsp = &ts;
sys/compat/netbsd32/netbsd32_mqueue.c
282
tsp = NULL;
sys/compat/netbsd32/netbsd32_mqueue.c
286
SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp);
sys/compat/netbsd32/netbsd32_mqueue.c
300
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_mqueue.c
312
tsp = &ts;
sys/compat/netbsd32/netbsd32_mqueue.c
314
tsp = NULL;
sys/compat/netbsd32/netbsd32_mqueue.c
318
SCARG(uap, msg_len), SCARG_P32(uap, msg_prio), tsp, &mlen);
sys/compat/netbsd32/netbsd32_mqueue.c
339
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_mqueue.c
350
tsp = &ts;
sys/compat/netbsd32/netbsd32_mqueue.c
352
tsp = NULL;
sys/compat/netbsd32/netbsd32_mqueue.c
356
SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp);
sys/compat/netbsd32/netbsd32_mqueue.c
371
struct timespec ts, *tsp;
sys/compat/netbsd32/netbsd32_mqueue.c
383
tsp = &ts;
sys/compat/netbsd32/netbsd32_mqueue.c
385
tsp = NULL;
sys/compat/netbsd32/netbsd32_mqueue.c
389
SCARG(uap, msg_len), SCARG_P32(uap, msg_prio), tsp, &mlen);
sys/fs/msdosfs/direntry.h
131
void msdosfs_unix2dostime(const struct timespec *tsp, int gmtoff,
sys/fs/msdosfs/direntry.h
134
int gmtoff, struct timespec *tsp);
sys/fs/msdosfs/msdosfs_conv.c
120
msdosfs_unix2dostime(const struct timespec *tsp, int gmtoff,
sys/fs/msdosfs/msdosfs_conv.c
126
t = tsp->tv_sec + gmtoff; /* time zone correction */
sys/fs/msdosfs/msdosfs_conv.c
153
*dhp = (tsp->tv_sec & 1) * 100 + tsp->tv_nsec / 10000000;
sys/fs/msdosfs/msdosfs_conv.c
175
struct timespec *tsp)
sys/fs/msdosfs/msdosfs_conv.c
184
tsp->tv_sec = 0;
sys/fs/msdosfs/msdosfs_conv.c
185
tsp->tv_nsec = 0;
sys/fs/msdosfs/msdosfs_conv.c
199
tsp->tv_sec = seconds;
sys/fs/msdosfs/msdosfs_conv.c
200
tsp->tv_sec -= gmtoff; /* time zone correction */
sys/fs/msdosfs/msdosfs_conv.c
201
tsp->tv_nsec = (dh % 100) * 10000000;
sys/fs/nfs/server/nfs_nfsdstate.c
4436
struct nfst_rec *tsp;
sys/fs/nfs/server/nfs_nfsdstate.c
4503
tsp = (struct nfst_rec *)malloc(sizeof (struct nfst_rec) +
sys/fs/nfs/server/nfs_nfsdstate.c
4507
(caddr_t)tsp, sizeof (struct nfst_rec) + NFSV4_OPAQUELIMIT - 1,
sys/fs/nfs/server/nfs_nfsdstate.c
4511
len < (sizeof (struct nfst_rec) + tsp->len - 1)))) {
sys/fs/nfs/server/nfs_nfsdstate.c
4521
free((caddr_t)tsp, M_TEMP);
sys/fs/nfs/server/nfs_nfsdstate.c
4528
off += sizeof (struct nfst_rec) + tsp->len - 1;
sys/fs/nfs/server/nfs_nfsdstate.c
4533
if (tsp->len == sp->nst_len &&
sys/fs/nfs/server/nfs_nfsdstate.c
4534
!NFSBCMP(tsp->client, sp->nst_client, tsp->len))
sys/fs/nfs/server/nfs_nfsdstate.c
4538
sp = (struct nfsrv_stable *)malloc(tsp->len +
sys/fs/nfs/server/nfs_nfsdstate.c
4541
NFSBCOPY((caddr_t)tsp, (caddr_t)&sp->nst_rec,
sys/fs/nfs/server/nfs_nfsdstate.c
4542
sizeof (struct nfst_rec) + tsp->len - 1);
sys/fs/nfs/server/nfs_nfsdstate.c
4545
if (tsp->flag == NFSNST_REVOKE)
sys/fs/nfs/server/nfs_nfsdstate.c
4557
free((caddr_t)tsp, M_TEMP);
sys/kern/kern_event.c
2274
const struct timespec *tsp, register_t *retval,
sys/kern/kern_event.c
2296
if (tsp) { /* timeout supplied */
sys/kern/kern_event.c
2297
ats = *tsp;
sys/kern/kern_event.c
2326
} else if (tsp == NULL || (timeout =
sys/kern/kern_ntptime.c
700
hardpps(struct timespec *tsp, /* time at PPS */
sys/kern/kern_ntptime.c
721
u_sec = tsp->tv_sec;
sys/kern/kern_ntptime.c
722
u_nsec = tsp->tv_nsec;
sys/kern/kern_tc.c
1205
struct timespec ts, *tsp, *osp;
sys/kern/kern_tc.c
1265
tsp = &pps->ppsinfo.assert_timestamp;
sys/kern/kern_tc.c
1274
tsp = &pps->ppsinfo.clear_timestamp;
sys/kern/kern_tc.c
1371
*tsp = ts;
sys/kern/kern_tc.c
1375
timespecadd(tsp, osp, tsp);
sys/kern/kern_tc.c
1376
if (tsp->tv_nsec < 0) {
sys/kern/kern_tc.c
1377
tsp->tv_nsec += 1000000000;
sys/kern/kern_tc.c
1378
tsp->tv_sec -= 1;
sys/kern/kern_tc.c
1400
tsp->tv_sec, (int32_t)tsp->tv_nsec,
sys/kern/kern_tc.c
1476
tsp->tv_sec, (int32_t)tsp->tv_nsec,
sys/kern/kern_tc.c
1481
hardpps(tsp, timespec2ns(&ts));
sys/kern/kern_tc.c
498
nanouptime(struct timespec *tsp)
sys/kern/kern_tc.c
504
bintime2timespec(&bt, tsp);
sys/kern/kern_tc.c
529
nanotime(struct timespec *tsp)
sys/kern/kern_tc.c
535
bintime2timespec(&bt, tsp);
sys/kern/kern_tc.c
565
getnanouptime(struct timespec *tsp)
sys/kern/kern_tc.c
575
bintime2timespec(&th->th_offset, tsp);
sys/kern/kern_tc.c
616
dogetnanotime(struct timespec *tsp)
sys/kern/kern_tc.c
626
*tsp = th->th_nanotime;
sys/kern/kern_tc.c
632
getnanotime(struct timespec *tsp)
sys/kern/kern_tc.c
635
dogetnanotime(tsp);
sys/kern/kern_tc.c
638
void dtrace_getnanotime(struct timespec *tsp);
sys/kern/kern_tc.c
641
dtrace_getnanotime(struct timespec *tsp)
sys/kern/kern_tc.c
644
dogetnanotime(tsp);
sys/kern/kern_tc.c
664
getnanoboottime(struct timespec *tsp)
sys/kern/kern_tc.c
669
bintime2timespec(&bt, tsp);
sys/kern/subr_time.c
67
tshzto(const struct timespec *tsp)
sys/kern/subr_time.c
71
ts = *tsp; /* Don't modify original tsp. */
sys/kern/subr_time.c
78
tshztoup(const struct timespec *tsp)
sys/kern/subr_time.c
82
ts = *tsp; /* Don't modify original tsp. */
sys/kern/subr_time_arith.c
229
timespecaddok(const struct timespec *tsp, const struct timespec *usp)
sys/kern/subr_time_arith.c
232
time_t a = tsp->tv_sec;
sys/kern/subr_time_arith.c
241
KASSERT(tsp->tv_nsec >= 0);
sys/kern/subr_time_arith.c
243
KASSERT(tsp->tv_nsec < 1000000000L);
sys/kern/subr_time_arith.c
256
carry = (tsp->tv_nsec + usp->tv_nsec >= 1000000000L);
sys/kern/subr_time_arith.c
342
timespecsubok(const struct timespec *tsp, const struct timespec *usp)
sys/kern/subr_time_arith.c
345
time_t a = tsp->tv_sec, b = usp->tv_sec;
sys/kern/subr_time_arith.c
353
KASSERT(tsp->tv_nsec >= 0);
sys/kern/subr_time_arith.c
355
KASSERT(tsp->tv_nsec < 1000000000L);
sys/kern/subr_time_arith.c
368
borrow = (tsp->tv_nsec - usp->tv_nsec < 0);
sys/kern/sys_epoll.c
382
struct epoll_event *events, int maxevents, struct timespec *tsp,
sys/kern/sys_epoll.c
421
maxevents, tsp, &k_ops);
sys/kern/sys_epoll.c
452
struct timespec ts, *tsp;
sys/kern/sys_epoll.c
465
tsp = &ts;
sys/kern/sys_epoll.c
467
tsp = NULL;
sys/kern/sys_epoll.c
481
maxevents, tsp, ssp);
sys/kern/sys_futex.c
1744
struct timespec ts, *tsp;
sys/kern/sys_futex.c
1754
tsp = &ts;
sys/kern/sys_futex.c
1756
tsp = NULL;
sys/kern/sys_futex.c
1760
tsp, SCARG(uap, uaddr2), SCARG(uap, val2), SCARG(uap, val3),
sys/kern/sys_lwp.c
579
struct timespec ts, *tsp;
sys/kern/sys_lwp.c
583
tsp = NULL;
sys/kern/sys_lwp.c
588
tsp = &ts;
sys/kern/sys_lwp.c
597
error = lwp_park(SCARG(uap, clock_id), SCARG(uap, flags), tsp);
sys/kern/sys_lwp.c
599
(void)copyout(tsp, SCARG(uap, ts), sizeof(*tsp));
sys/kern/sys_mqueue.c
758
struct timespec ts, *tsp;
sys/kern/sys_mqueue.c
767
tsp = &ts;
sys/kern/sys_mqueue.c
769
tsp = NULL;
sys/kern/sys_mqueue.c
773
SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp, &mlen);
sys/kern/sys_mqueue.c
934
struct timespec ts, *tsp;
sys/kern/sys_mqueue.c
942
tsp = &ts;
sys/kern/sys_mqueue.c
944
tsp = NULL;
sys/kern/sys_mqueue.c
948
SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp);
sys/kern/vfs_subr.c
1378
vfs_timestamp(struct timespec *tsp)
sys/kern/vfs_subr.c
1384
tsp->tv_sec = time_second;
sys/kern/vfs_subr.c
1385
tsp->tv_nsec = 0;
sys/kern/vfs_subr.c
1388
getnanotime(tsp);
sys/kern/vfs_subr.c
1392
TIMEVAL_TO_TIMESPEC(&tv, tsp);
sys/kern/vfs_subr.c
1396
nanotime(tsp);
sys/sys/epoll.h
85
struct epoll_event *events, int maxevents, struct timespec *tsp,
sys/sys/time.h
247
#define timespecclear(tsp) (tsp)->tv_sec = (time_t)((tsp)->tv_nsec = 0L)
sys/sys/time.h
248
#define timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec)
sys/sys/time.h
249
#define timespeccmp(tsp, usp, cmp) \
sys/sys/time.h
250
(((tsp)->tv_sec == (usp)->tv_sec) ? \
sys/sys/time.h
251
((tsp)->tv_nsec cmp (usp)->tv_nsec) : \
sys/sys/time.h
252
((tsp)->tv_sec cmp (usp)->tv_sec))
sys/sys/time.h
253
#define timespecadd(tsp, usp, vsp) \
sys/sys/time.h
255
(vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \
sys/sys/time.h
256
(vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \
sys/sys/time.h
262
#define timespecsub(tsp, usp, vsp) \
sys/sys/time.h
264
(vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
sys/sys/time.h
265
(vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
usr.bin/pwait/pwait.c
120
tsp = &ts;
usr.bin/pwait/pwait.c
122
tsp = NULL;
usr.bin/pwait/pwait.c
161
switch (rv = kevent(kq, NULL, 0, e, nleft, tsp)) {
usr.bin/pwait/pwait.c
81
struct timespec ts, *tsp;
usr.bin/touch/touch.c
239
stime_arg0(const char *arg, struct timespec *tsp)
usr.bin/touch/touch.c
241
tsp[1].tv_sec = tsp[0].tv_sec = parsedate(arg, NULL, NULL);
usr.bin/touch/touch.c
242
if (tsp[0].tv_sec == NO_TIME)
usr.bin/touch/touch.c
244
tsp[0].tv_nsec = tsp[1].tv_nsec = 0;
usr.bin/touch/touch.c
248
stime_arg1(char *arg, struct timespec *tsp)
usr.bin/touch/touch.c
257
tmptime = tsp[0].tv_sec;
usr.bin/touch/touch.c
308
tsp[0].tv_sec = tsp[1].tv_sec = mktime(t);
usr.bin/touch/touch.c
309
if (tsp[0].tv_sec == NO_TIME || difftm(t, &tm))
usr.bin/touch/touch.c
313
tsp[0].tv_nsec = tsp[1].tv_nsec = 0;
usr.bin/touch/touch.c
317
stime_arg2(const char *arg, int year, struct timespec *tsp)
usr.bin/touch/touch.c
322
tmptime = tsp[0].tv_sec;
usr.bin/touch/touch.c
342
tsp[0].tv_sec = tsp[1].tv_sec = mktime(t);
usr.bin/touch/touch.c
343
if (tsp[0].tv_sec == NO_TIME || difftm(t, &tm))
usr.bin/touch/touch.c
347
tsp[0].tv_nsec = tsp[1].tv_nsec = 0;
usr.bin/touch/touch.c
351
stime_file(const char *fname, struct timespec *tsp,
usr.bin/touch/touch.c
358
tsp[0] = sb.st_atimespec;
usr.bin/touch/touch.c
359
tsp[1] = sb.st_mtimespec;
usr.bin/touch/touch.c
363
stime_posix(const char *arg, struct timespec *tsp)
usr.bin/touch/touch.c
479
tsp[0].tv_nsec = tsp[1].tv_nsec =
usr.bin/touch/touch.c
482
tsp[0].tv_nsec = tsp[1].tv_nsec = 0;
usr.bin/touch/touch.c
496
tsp[0].tv_sec = tsp[1].tv_sec = timegm(&tm);
usr.bin/touch/touch.c
498
tsp[0].tv_sec = tsp[1].tv_sec = mktime(&tm);
usr.bin/touch/touch.c
500
if ((errno != 0 && tsp[1].tv_sec == NO_TIME) || difftm(&tm, &tms))
usr.sbin/timed/timed/acksend.c
44
struct tsp *answer;
usr.sbin/timed/timed/acksend.c
51
static struct tsp msg;
usr.sbin/timed/timed/acksend.c
63
sendtsp(int s, struct tsp *msg, struct sockaddr_in *addr)
usr.sbin/timed/timed/acksend.c
83
struct tsp *
usr.sbin/timed/timed/acksend.c
84
acksend(struct tsp *message, /* this message */
usr.sbin/timed/timed/byteorder.c
46
bytenetorder(struct tsp *ptr)
usr.sbin/timed/timed/byteorder.c
65
bytehostorder(struct tsp *ptr)
usr.sbin/timed/timed/candidate.c
50
struct tsp *resp, msg;
usr.sbin/timed/timed/candidate.c
52
struct tsp *answer;
usr.sbin/timed/timed/correct.c
186
adj_msg_time(struct tsp *msg, struct timeval *now)
usr.sbin/timed/timed/correct.c
58
struct tsp to;
usr.sbin/timed/timed/correct.c
59
struct tsp *answer;
usr.sbin/timed/timed/master.c
345
mchgdate(struct tsp *msg)
usr.sbin/timed/timed/master.c
458
struct tsp to;
usr.sbin/timed/timed/master.c
459
struct tsp *answer;
usr.sbin/timed/timed/master.c
57
static void mchgdate(struct tsp*);
usr.sbin/timed/timed/master.c
726
newslave(struct tsp *msg)
usr.sbin/timed/timed/master.c
729
struct tsp *answer, to;
usr.sbin/timed/timed/master.c
771
doquit(struct tsp *msg)
usr.sbin/timed/timed/master.c
79
struct tsp *msg, *answer, to;
usr.sbin/timed/timed/measure.c
331
update_time(struct timeval *tv, const struct tsp *msg)
usr.sbin/timed/timed/readmsg.c
207
if ((n = recvfrom(sock, &msgin, sizeof(struct tsp), 0,
usr.sbin/timed/timed/readmsg.c
217
if (n < (ssize_t)(sizeof(struct tsp) - MAXHOSTNAMELEN + 32)) {
usr.sbin/timed/timed/readmsg.c
221
(u_long)(sizeof(struct tsp) - MAXHOSTNAMELEN + 32),
usr.sbin/timed/timed/readmsg.c
409
struct tsp resp;
usr.sbin/timed/timed/readmsg.c
450
print(struct tsp *msg, struct sockaddr_in *addr)
usr.sbin/timed/timed/readmsg.c
56
struct tsp msgin;
usr.sbin/timed/timed/readmsg.c
58
struct tsp info;
usr.sbin/timed/timed/readmsg.c
75
struct tsp *
usr.sbin/timed/timed/slave.c
55
static void schgdate(struct tsp *, char *);
usr.sbin/timed/timed/slave.c
56
static void setmaster(struct tsp *);
usr.sbin/timed/timed/slave.c
594
setmaster(struct tsp *msg)
usr.sbin/timed/timed/slave.c
623
schgdate(struct tsp *msg, char *newdate)
usr.sbin/timed/timed/slave.c
625
struct tsp to;
usr.sbin/timed/timed/slave.c
71
struct tsp *msg, to;
usr.sbin/timed/timed/slave.c
74
struct tsp *answer;
usr.sbin/timed/timed/timed-extern.h
38
struct tsp;
usr.sbin/timed/timed/timed-extern.h
44
struct tsp *readmsg(int, char *, struct timeval *, struct netinfo *);
usr.sbin/timed/timed/timed-extern.h
45
struct tsp *acksend(struct tsp *,
usr.sbin/timed/timed/timed-extern.h
49
void adj_msg_time(struct tsp *, struct timeval *);
usr.sbin/timed/timed/timed-extern.h
50
void bytehostorder(struct tsp *);
usr.sbin/timed/timed/timed-extern.h
51
void bytenetorder(struct tsp *);
usr.sbin/timed/timed/timed-extern.h
52
void byteorder(struct tsp *);
usr.sbin/timed/timed/timed-extern.h
57
void doquit(struct tsp *);
usr.sbin/timed/timed/timed-extern.h
72
void newslave(struct tsp *);
usr.sbin/timed/timed/timed-extern.h
73
void print(struct tsp *, struct sockaddr_in *);
usr.sbin/timed/timed/timed-extern.h
85
void set_tsp_name(struct tsp *, const char *);
usr.sbin/timed/timed/timed-extern.h
86
void get_tsp_name(const struct tsp *, char *, size_t);
usr.sbin/timed/timed/timed-extern.h
87
void update_time(struct timeval *, const struct tsp *);
usr.sbin/timed/timed/timed-extern.h
88
int sendtsp(int , struct tsp *, struct sockaddr_in *);
usr.sbin/timed/timed/timed.c
425
struct tsp msg;
usr.sbin/timed/timed/timed.c
448
struct tsp resp, conflict, *answer;
usr.sbin/timed/timed/tspname.c
42
set_tsp_name(struct tsp *tsp, const char *name)
usr.sbin/timed/timed/tspname.c
44
(void)strncpy(tsp->tsp_name, name, sizeof(tsp->tsp_name));
usr.sbin/timed/timed/tspname.c
45
tsp->tsp_name[sizeof(tsp->tsp_name) - 1] = '\0';
usr.sbin/timed/timed/tspname.c
49
get_tsp_name(const struct tsp *tsp, char *name, size_t size)
usr.sbin/timed/timed/tspname.c
51
size = MIN(size, sizeof(tsp->tsp_name));
usr.sbin/timed/timed/tspname.c
53
(void)strncpy(name, tsp->tsp_name, size);
usr.sbin/timed/timedc/cmds.c
120
tsp_type_to_string(const struct tsp *msg)
usr.sbin/timed/timedc/cmds.c
332
struct tsp msg;
usr.sbin/timed/timedc/cmds.c
415
struct tsp msg;
usr.sbin/timed/timedc/cmds.c
442
struct tsp msg;
usr.sbin/timed/timedc/cmds.c
63
void bytenetorder(struct tsp *);
usr.sbin/timed/timedc/cmds.c
64
void bytehostorder(struct tsp *);
usr.sbin/timed/timedc/cmds.c
65
void set_tsp_name(struct tsp *, const char *);
usr.sbin/timed/timedc/cmds.c
66
void get_tsp_name(const struct tsp *, char *, size_t);
usr.sbin/timed/timedc/timedc-extern.h
34
struct tsp;
usr.sbin/timed/timedc/timedc-extern.h
36
void bytehostorder(struct tsp *);
usr.sbin/timed/timedc/timedc-extern.h
37
void bytenetorder(struct tsp *);