| /netbsd-src/external/bsd/nvi/dist/vi/ |
| H A D | vs_split.c | 305 SCR *tsp; in vs_insert() local 310 TAILQ_FOREACH(tsp, &wp->scrq, q) in vs_insert() 311 if (tsp->roff >= sp->roff) in vs_insert() 317 for (; tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) in vs_insert() 318 if (tsp->roff != sp->roff || tsp->coff > sp->coff) in vs_insert() 325 if (tsp == NULL) { in vs_insert() 327 } else if (tsp->roff < sp->roff || in vs_insert() 328 (tsp->roff == sp->roff && tsp->coff < sp->coff)) { in vs_insert() 329 TAILQ_INSERT_AFTER(&wp->scrq, tsp, sp, q); in vs_insert() 331 TAILQ_INSERT_BEFORE(tsp, sp, q); in vs_insert() [all …]
|
| /netbsd-src/usr.sbin/timed/timed/ |
| H A D | timed-extern.h | 38 struct tsp; 44 struct tsp *readmsg(int, char *, struct timeval *, struct netinfo *); 45 struct tsp *acksend(struct tsp *, 49 void adj_msg_time(struct tsp *, struct timeval *); 50 void bytehostorder(struct tsp *); 51 void bytenetorder(struct tsp *); 52 void byteorder(struct tsp *); 57 void doquit(struct tsp *); 72 void newslave(struct tsp *); 73 void print(struct tsp *, struct sockaddr_in *); [all …]
|
| H A D | tspname.c | 42 set_tsp_name(struct tsp *tsp, const char *name) in set_tsp_name() argument 44 (void)strncpy(tsp->tsp_name, name, sizeof(tsp->tsp_name)); in set_tsp_name() 45 tsp->tsp_name[sizeof(tsp->tsp_name) - 1] = '\0'; in set_tsp_name() 49 get_tsp_name(const struct tsp *tsp, char *name, size_t size) in get_tsp_name() argument 51 size = MIN(size, sizeof(tsp->tsp_name)); in get_tsp_name() 53 (void)strncpy(name, tsp->tsp_name, size); in get_tsp_name()
|
| H A D | acksend.c | 44 struct tsp *answer; 51 static struct tsp msg; in xmit() 63 sendtsp(int s, struct tsp *msg, struct sockaddr_in *addr) in sendtsp() 83 struct tsp * 84 acksend(struct tsp *message, /* this message */ in acksend()
|
| /netbsd-src/usr.bin/touch/ |
| H A D | touch.c | 239 stime_arg0(const char *arg, struct timespec *tsp) in stime_arg0() argument 241 tsp[1].tv_sec = tsp[0].tv_sec = parsedate(arg, NULL, NULL); in stime_arg0() 242 if (tsp[0].tv_sec == NO_TIME) in stime_arg0() 244 tsp[0].tv_nsec = tsp[1].tv_nsec = 0; in stime_arg0() 248 stime_arg1(char *arg, struct timespec *tsp) in stime_arg1() argument 257 tmptime = tsp[0].tv_sec; in stime_arg1() 308 tsp[0].tv_sec = tsp[1].tv_sec = mktime(t); in stime_arg1() 309 if (tsp[0].tv_sec == NO_TIME || difftm(t, &tm)) in stime_arg1() 313 tsp[0].tv_nsec = tsp[1].tv_nsec = 0; in stime_arg1() 317 stime_arg2(const char *arg, int year, struct timespec *tsp) in stime_arg2() argument [all …]
|
| /netbsd-src/sys/arch/alpha/pci/ |
| H A D | tsc.c | 71 CFATTACH_DECL_NEW(tsp, 0, tspmatch, tspattach, NULL, NULL); 116 struct tsp_attach_args tsp; in tscattach() local 139 memset(&tsp, 0, sizeof tsp); in tscattach() 140 tsp.tsp_name = "tsp"; in tscattach() 141 tsp.tsp_slot = 0; in tscattach() 143 config_found(self, &tsp, tscprint, CFARGS_NONE); in tscattach() 145 tsp.tsp_slot += 2; in tscattach() 146 config_found(self, &tsp, tscprint, CFARGS_NONE); in tscattach() 150 tsp.tsp_slot = 1; in tscattach() 151 config_found(self, &tsp, tscprint, CFARGS_NONE); in tscattach() [all …]
|
| /netbsd-src/external/bsd/libfido2/dist/openbsd-compat/ |
| H A D | time.h | 35 #define timespecadd(tsp, usp, vsp) \ argument 37 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \ 38 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \ 45 #define timespecsub(tsp, usp, vsp) \ argument 47 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ 48 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \ 55 #define timespeccmp(tsp, usp, cmp) \ argument 56 (((tsp)->tv_sec == (usp)->tv_sec) ? \ 57 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \ 58 ((tsp)->tv_sec cmp (usp)->tv_sec))
|
| /netbsd-src/lib/libc/compat/sys/ |
| H A D | compat_mqueue.c | 66 struct timespec ts, *tsp; in __weak_alias() local 69 timespec50_to_timespec(ts50, tsp = &ts); in __weak_alias() 71 tsp = NULL; in __weak_alias() 72 return __mq_timedreceive50(mq, name, len, buf, tsp); in __weak_alias() 79 struct timespec ts, *tsp; in mq_timedsend() local 82 timespec50_to_timespec(ts50, tsp = &ts); in mq_timedsend() 84 tsp = NULL; in mq_timedsend() 85 return __mq_timedsend50(mq, name, len, buf, tsp); in mq_timedsend()
|
| H A D | compat_kevent.c | 60 struct timespec ts, *tsp; in kevent() local 63 timespec50_to_timespec(ts50, tsp = &ts); in kevent() 65 tsp = NULL; in kevent() 66 return __kevent50(kq, changelist, nchanges, eventlist, nevents, tsp); in kevent() 71 struct kevent100 *eventlist100, size_t nevents, const struct timespec *tsp) in __kevent50() argument 91 retval = __kevent100(kq, changelist, nchanges, eventlist, nevents, tsp); in __kevent50()
|
| H A D | compat_lfs_segwait.c | 57 struct timeval ts, *tsp; in lfs_segwait() local 60 timeval50_to_timeval(ts50, tsp = &ts); in lfs_segwait() 62 tsp = NULL; in lfs_segwait() 63 return __lfs_segwait50(fsid, tsp); in lfs_segwait()
|
| H A D | compat__lwp_park.c | 59 struct timespec ts, *tsp; in _lwp_park() local 62 timespec50_to_timespec(ts50, tsp = &ts); in _lwp_park() 64 tsp = NULL; in _lwp_park() 65 return ___lwp_park50(tsp, unpark, hint, unparkhint); in _lwp_park()
|
| H A D | compat_aio_suspend.c | 63 struct timespec ts, *tsp; in __weak_alias() local 66 timespec50_to_timespec(ts50, tsp = &ts); in __weak_alias() 68 tsp = NULL; in __weak_alias() 69 return __aio_suspend50(list, nent, tsp); in __weak_alias()
|
| H A D | compat_adjtime.c | 62 struct timeval ts, *tsp; in __weak_alias() local 68 timeval50_to_timeval(ts50, tsp = &ts); in __weak_alias() 70 tsp = NULL; in __weak_alias() 71 error = __adjtime50(tsp, rtsp); in __weak_alias()
|
| H A D | compat_nanosleep.c | 62 struct timespec ts, *tsp; in __weak_alias() local 68 timespec50_to_timespec(ts50, tsp = &ts); in __weak_alias() 70 tsp = NULL; in __weak_alias() 71 error = __nanosleep50(tsp, rtsp); in __weak_alias()
|
| /netbsd-src/sys/sys/ |
| H A D | time.h | 243 #define timespecclear(tsp) (tsp)->tv_sec = (time_t)((tsp)->tv_nsec = 0L) argument 244 #define timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec) argument 245 #define timespeccmp(tsp, usp, cmp) \ argument 246 (((tsp)->tv_sec == (usp)->tv_sec) ? \ 247 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \ 248 ((tsp) 249 timespecadd(tsp,usp,vsp) global() argument 258 timespecsub(tsp,usp,vsp) global() argument [all...] |
| /netbsd-src/sys/compat/netbsd32/ |
| H A D | netbsd32_mqueue.c | 269 struct timespec ts, *tsp; in netbsd32___mq_timedsend50() local 280 tsp = &ts; in netbsd32___mq_timedsend50() 282 tsp = NULL; in netbsd32___mq_timedsend50() 286 SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp); in netbsd32___mq_timedsend50() 300 struct timespec ts, *tsp; in netbsd32___mq_timedreceive50() local 312 tsp = &ts; in netbsd32___mq_timedreceive50() 314 tsp = NULL; in netbsd32___mq_timedreceive50() 318 SCARG(uap, msg_len), SCARG_P32(uap, msg_prio), tsp, &mlen); in netbsd32___mq_timedreceive50() 339 struct timespec ts, *tsp; in compat_50_netbsd32_mq_timedsend() local 350 tsp = &ts; in compat_50_netbsd32_mq_timedsend() [all …]
|
| /netbsd-src/sys/kern/ |
| H A D | subr_time.c | 66 tshzto(const struct timespec *tsp) 70 ts = *tsp; /* Don't modify original tsp. */ in tvtohz() 77 tshztoup(const struct timespec *tsp) in tvtohz() 81 ts = *tsp; /* Don't modify original tsp. */ in tvtohz() 127 tshzto(const struct timespec * tsp) tshzto() argument 138 tshztoup(const struct timespec * tsp) tshztoup() argument 351 timespecaddok(const struct timespec * tsp,const struct timespec * usp) timespecaddok() argument 458 timespecsubok(const struct timespec * tsp,const struct timespec * usp) timespecsubok() argument
|
| H A D | kern_tc.c | 497 nanouptime(struct timespec *tsp) in nanouptime() argument 503 bintime2timespec(&bt, tsp); in nanouptime() 528 nanotime(struct timespec *tsp) in nanotime() argument 534 bintime2timespec(&bt, tsp); in nanotime() 564 getnanouptime(struct timespec *tsp) in getnanouptime() argument 574 bintime2timespec(&th->th_offset, tsp); in getnanouptime() 615 dogetnanotime(struct timespec *tsp) in dogetnanotime() argument 625 *tsp = th->th_nanotime; in dogetnanotime() 631 getnanotime(struct timespec *tsp) in getnanotime() argument 634 dogetnanotime(tsp); in getnanotime() [all …]
|
| /netbsd-src/external/bsd/nvi/dist/cl/ |
| H A D | cl_funcs.c | 382 SCR* tsp; in cl_discard() local 398 for (; (tsp = *acquirep) != NULL; ++acquirep) { in cl_discard() 399 clp = CLP(tsp); in cl_discard() 402 if (CLSP(tsp)) in cl_discard() 403 delwin(CLSP(tsp)); in cl_discard() 404 tsp->cl_private = subwin(stdscr, tsp->rows, tsp->cols, in cl_discard() 405 tsp->roff, tsp->coff); in cl_discard() 594 SCR *psp, *tsp; in cl_refresh() local 619 for (tsp = TAILQ_NEXT(psp, q); tsp != NULL; in cl_refresh() 620 tsp = TAILQ_NEXT(tsp, q)) in cl_refresh() [all …]
|
| /netbsd-src/external/bsd/nvi/dist/ex/ |
| H A D | ex_screen.c | 110 SCR *tsp; in ex_sdisplay() local 115 if ((tsp = TAILQ_FIRST(&gp->hq)) == NULL) { in ex_sdisplay() 121 for (cnt = 1; tsp != NULL && !INTERRUPTED(sp); in ex_sdisplay() 122 tsp = TAILQ_NEXT(tsp, q)) { in ex_sdisplay() 123 col += len = strlen(tsp->frp->name) + sep; in ex_sdisplay() 132 (void)ex_puts(sp, tsp->frp->name); in ex_sdisplay()
|
| /netbsd-src/sys/arch/alpha/alpha/ |
| H A D | dec_6600.c | 151 struct tsp_config *tsp; in dec_6600_cons_init() local 159 tsp = tsp_init(tsp_console_hose); in dec_6600_cons_init() 174 if(comcnattach(&tsp->pc_iot, 0x3f8, comcnrate, in dec_6600_cons_init() 186 (void) pckbc_cnattach(&tsp->pc_iot, IO_KBD, KBCMDP, in dec_6600_cons_init() 191 isa_display_console(&tsp->pc_iot, &tsp->pc_memt); in dec_6600_cons_init() 195 tsp = tsp_init(tsp_console_hose); in dec_6600_cons_init() 196 pci_display_console(&tsp->pc_iot, &tsp->pc_memt, in dec_6600_cons_init() 197 &tsp->pc_pc, CTB_TURBOSLOT_BUS(ctbslot), in dec_6600_cons_init() 215 alpha_kgdb_init(kgdb_devlist, &tsp->pc_iot); in dec_6600_cons_init() 277 struct tsp_attach_args *tsp = aux; in dec_6600_device_register() local [all …]
|
| /netbsd-src/external/bsd/dhcpcd/dist/src/ |
| H A D | common.h | 68 #define timespecclear(tsp) (tsp)->tv_sec = (time_t)((tsp)->tv_nsec = 0L) argument 69 #define timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec) argument
|
| /netbsd-src/lib/libc/sys/ |
| H A D | epoll.c | 59 struct timespec ts, *tsp; in epoll_pwait() local 64 tsp = &ts; in epoll_pwait() 66 tsp = NULL; in epoll_pwait() 68 return epoll_pwait2(epfd, events, maxevents, tsp, sigmask); in epoll_pwait()
|
| /netbsd-src/sys/compat/linux/common/ |
| H A D | linux_mqueue.c | 129 struct timespec ts, *tsp; in linux_sys_mq_timedsend() local 138 tsp = &ts; in linux_sys_mq_timedsend() 140 tsp = NULL; in linux_sys_mq_timedsend() 144 SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp); in linux_sys_mq_timedsend() 160 struct timespec ts, *tsp; in linux_sys_mq_timedreceive() local 170 tsp = &ts; in linux_sys_mq_timedreceive() 172 tsp = NULL; in linux_sys_mq_timedreceive() 176 SCARG(uap, msg_len), SCARG(uap, msg_prio), tsp, &mlen); in linux_sys_mq_timedreceive()
|
| /netbsd-src/sys/compat/common/ |
| H A D | kern_time_60.c | 66 struct timespec ts, *tsp; in compat_60_sys__lwp_park() local 69 tsp = NULL; in compat_60_sys__lwp_park() 74 tsp = &ts; in compat_60_sys__lwp_park() 83 return lwp_park(CLOCK_REALTIME, TIMER_ABSTIME, tsp); in compat_60_sys__lwp_park()
|