/freebsd-11-stable/usr.sbin/timed/timedc/ |
H A D | extern.h | 35 struct tsp; 40 void bytehostorder(struct tsp *); 41 void bytenetorder(struct tsp *);
|
H A D | cmds.c | 70 void bytenetorder(struct tsp *); 71 void bytehostorder(struct tsp *); 270 struct tsp msg; 303 if (sendto(sock, &msg, sizeof(struct tsp), 0, 317 cc = recvfrom(sock, &msg, sizeof(struct tsp), 0, 328 if (cc < (sizeof(struct tsp) - MAXHOSTNAMELEN + 32)) { 331 cc, sizeof(struct tsp) - MAXHOSTNAMELEN + 32, 373 struct tsp msg; 404 if (sendto(sock, &msg, sizeof(struct tsp), 0, 426 struct tsp ms [all...] |
/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-timed.c | 44 struct tsp { struct 101 const struct tsp *tsp = (const struct tsp *)bp; local 104 ND_TCHECK(tsp->tsp_type); 105 if (tsp->tsp_type < TSPTYPENUMBER) 106 ND_PRINT((ndo, "TSP_%s", tsptype[tsp->tsp_type])); 108 ND_PRINT((ndo, "(tsp_type %#x)", tsp->tsp_type)); 110 ND_TCHECK(tsp->tsp_vers); 111 ND_PRINT((ndo, " vers %u", tsp [all...] |
/freebsd-11-stable/lib/libnetbsd/sys/ |
H A D | time.h | 40 #define timespecclear(tsp) (tsp)->tv_sec = (time_t)((tsp)->tv_nsec = 0L) 41 #define timespecisset(tsp) ((tsp)->tv_sec || (tsp)->tv_nsec) 42 #define timespeccmp(tsp, usp, cmp) \ 43 (((tsp)->tv_sec == (usp)->tv_sec) ? \ 44 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \ 45 ((tsp) [all...] |
/freebsd-11-stable/usr.sbin/rtadvd/ |
H A D | timer_subr.h | 35 #define TS_CMP(tsp, usp, cmp) \ 36 (((tsp)->tv_sec == (usp)->tv_sec) ? \ 37 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \ 38 ((tsp)->tv_sec cmp (usp)->tv_sec)) 39 #define TS_ADD(tsp, usp, vsp) \ 41 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \ 42 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \ 48 #define TS_SUB(tsp, usp, vsp) \ 50 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ 51 (vsp)->tv_nsec = (tsp) [all...] |
/freebsd-11-stable/usr.sbin/timed/timed/ |
H A D | extern.h | 38 struct tsp; 44 struct tsp *readmsg(int, 46 struct tsp *acksend(struct tsp *, 50 void adj_msg_time(struct tsp *, struct timeval *); 51 void bytehostorder(struct tsp *); 52 void bytenetorder(struct tsp *); 53 void byteorder(struct tsp *); 58 void doquit(struct tsp *); 73 void newslave(struct tsp *); [all...] |
H A D | acksend.c | 40 struct tsp *answer; 47 static struct tsp msg; 54 if (sendto(sock, (char *)&msg, sizeof(struct tsp), 0, 74 struct tsp * 75 acksend(struct tsp *message, struct sockaddr_in *addr, char *name, 100 if (sendto(sock, (char *)message, sizeof(struct tsp),
|
H A D | byteorder.c | 45 bytenetorder(struct tsp *ptr) 64 bytehostorder(struct tsp *ptr)
|
H A D | candidate.c | 49 struct tsp *resp, msg; 51 struct tsp *answer; 80 if (sendto(sock, (char *)&msg, sizeof(struct tsp), 0,
|
H A D | readmsg.c | 52 struct tsp msgin; 54 struct tsp info; 71 struct tsp * 201 if ((n = recvfrom(sock, (char *)&msgin, sizeof(struct tsp), 0, 211 if (n < (ssize_t)(sizeof(struct tsp) - MAXHOSTNAMELEN + 32)) { 214 n, sizeof(struct tsp) - MAXHOSTNAMELEN + 32, 403 struct tsp resp; 444 print(struct tsp *msg, struct sockaddr_in *addr)
|
/freebsd-11-stable/contrib/nvi/vi/ |
H A D | vs_split.c | 300 SCR *tsp; local 305 TAILQ_FOREACH(tsp, gp->dq, q) 306 if (tsp->roff >= sp->roff) 312 for (; tsp != NULL; tsp = TAILQ_NEXT(tsp, q)) 313 if (tsp->roff != sp->roff || tsp->coff > sp->coff) 320 if (tsp == NULL) { 322 } else if (tsp 340 SCR *tsp, **lp, *list[100]; local 457 SCR **lp, *tsp; local [all...] |
/freebsd-11-stable/sys/fs/smbfs/ |
H A D | smbfs_subr.c | 52 smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds) argument 54 *seconds = tsp->tv_sec - tzoff * 60 /*- tz_minuteswest * 60 - 59 smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp) argument 61 tsp->tv_sec = seconds + tzoff * 60; 73 smb_time_NT2local(int64_t nsec, int tzoff, struct timespec *tsp) argument 75 smb_time_server2local(nsec / 10000000 - DIFF1970TO1601, 0, tsp); 79 smb_time_local2NT(struct timespec *tsp, int tzoff, int64_t *nsec) argument 83 smb_time_local2server(tsp, 0, &seconds); 88 smb_time_unix2dos(struct timespec *tsp, int tzoff, u_int16_t *ddp, argument 94 tt = *tsp; 101 smb_dos2unixtime(u_int dd, u_int dt, u_int dh, int tzoff, struct timespec *tsp) argument [all...] |
H A D | smbfs_subr.h | 173 void smb_time_local2server(struct timespec *tsp, int tzoff, u_long *seconds); 174 void smb_time_server2local(u_long seconds, int tzoff, struct timespec *tsp); 175 void smb_time_NT2local(int64_t nsec, int tzoff, struct timespec *tsp); 176 void smb_time_local2NT(struct timespec *tsp, int tzoff, int64_t *nsec); 177 void smb_time_unix2dos(struct timespec *tsp, int tzoff, u_int16_t *ddp, 179 void smb_dos2unixtime (u_int dd, u_int dt, u_int dh, int tzoff, struct timespec *tsp);
|
/freebsd-11-stable/usr.sbin/rtsold/ |
H A D | rtsold.h | 127 #define TS_CMP(tsp, usp, cmp) \ 128 (((tsp)->tv_sec == (usp)->tv_sec) ? \ 129 ((tsp)->tv_nsec cmp (usp)->tv_nsec) : \ 130 ((tsp)->tv_sec cmp (usp)->tv_sec)) 131 #define TS_ADD(tsp, usp, vsp) \ 133 (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec; \ 134 (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec; \ 140 #define TS_SUB(tsp, usp, vsp) \ 142 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ 143 (vsp)->tv_nsec = (tsp) [all...] |
/freebsd-11-stable/contrib/nvi/ex/ |
H A D | ex_screen.c | 104 SCR *tsp; local 108 if ((tsp = TAILQ_FIRST(gp->hq)) == NULL) { 114 for (cnt = 1; tsp != NULL && !INTERRUPTED(sp); 115 tsp = TAILQ_NEXT(tsp, q)) { 116 col += len = strlen(tsp->frp->name) + sep; 125 (void)ex_puts(sp, tsp->frp->name);
|
H A D | ex_visual.c | 39 SCR *tsp; local 139 tsp = sp; 140 if (vi(&tsp))
|
/freebsd-11-stable/sys/sys/ |
H A D | timeffc.h | 207 void ffclock_nanotime(struct timespec *tsp); 211 void ffclock_getnanotime(struct timespec *tsp); 215 void ffclock_nanouptime(struct timespec *tsp); 219 void ffclock_getnanouptime(struct timespec *tsp); 227 void ffclock_nanodifftime(ffcounter ffdelta, struct timespec *tsp); 237 void fbclock_nanotime(struct timespec *tsp); 241 void fbclock_getnanotime(struct timespec *tsp); 245 void fbclock_nanouptime(struct timespec *tsp); 249 void fbclock_getnanouptime(struct timespec *tsp); 269 nanotime_fromclock(struct timespec *tsp, in argument 299 getnanotime_fromclock(struct timespec *tsp, int whichclock) argument 329 nanouptime_fromclock(struct timespec *tsp, int whichclock) argument 359 getnanouptime_fromclock(struct timespec *tsp, int whichclock) argument [all...] |
H A D | clock.h | 178 void timespec2fattime(const struct timespec *tsp, int utc, u_int16_t *ddp, 181 struct timespec *tsp);
|
/freebsd-11-stable/sys/dev/sound/ |
H A D | clone.c | 73 struct timespec tsp; member in struct:snd_clone_entry 82 struct timespec tsp; member in struct:snd_clone 110 snd_timestamp(struct timespec *tsp) argument 116 tsp->tv_sec = time_second; 117 tsp->tv_nsec = 0; 120 getnanouptime(tsp); 124 TIMEVAL_TO_TIMESPEC(&tv, tsp); 127 nanouptime(tsp); 131 getnanouptime(tsp); 189 snd_timestamp(&c->tsp); 297 snd_clone_gettime(struct snd_clone *c, struct timespec *tsp) argument 328 snd_clone_getdevtime(struct cdev *dev, struct timespec *tsp) argument [all...] |
/freebsd-11-stable/sys/kern/ |
H A D | subr_fattime.c | 138 timespec2fattime(const struct timespec *tsp, int utc, uint16_t *ddp, argument 144 t1 = tsp->tv_sec; 149 *dhp = (tsp->tv_sec & 1) * 100 + tsp->tv_nsec / 10000000; 220 struct timespec *tsp) 225 tsp->tv_sec = (dt & 0x1f) << 1; 226 tsp->tv_sec += ((dt & 0x7e0) >> 5) * 60; 227 tsp->tv_sec += ((dt & 0xf800) >> 11) * 3600; 228 tsp->tv_sec += dh / 100; 229 tsp 219 fattime2timespec(unsigned dd, unsigned dt, unsigned dh, int utc, struct timespec *tsp) argument [all...] |
H A D | kern_ffclock.c | 252 ffclock_nanotime(struct timespec *tsp) argument 257 bintime2timespec(&bt, tsp); 278 ffclock_getnanotime(struct timespec *tsp) argument 284 bintime2timespec(&bt, tsp); 305 ffclock_nanouptime(struct timespec *tsp) argument 310 bintime2timespec(&bt, tsp); 331 ffclock_getnanouptime(struct timespec *tsp) argument 337 bintime2timespec(&bt, tsp); 358 ffclock_nanodifftime(ffcounter ffdelta, struct timespec *tsp) argument 363 bintime2timespec(&bt, tsp); [all...] |
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_join.c | 80 struct timespec ts, ts2, *tsp; local 122 tsp = &ts2; 124 tsp = NULL; 125 ret = _thr_umtx_wait(&pthread->tid, tid, tsp);
|
H A D | thr_umtx.c | 290 const struct timespec *tsp) 295 if (tsp == NULL) { 299 timeout._timeout = *tsp; 310 __thr_rwlock_wrlock(struct urwlock *rwlock, const struct timespec *tsp) argument 315 if (tsp == NULL) { 319 timeout._timeout = *tsp; 289 __thr_rwlock_rdlock(struct urwlock *rwlock, int flags, const struct timespec *tsp) argument
|
/freebsd-11-stable/contrib/nvi/cl/ |
H A D | cl_funcs.c | 353 SCR* tsp; local 369 for (; (tsp = *acquirep) != NULL; ++acquirep) { 370 clp = CLP(tsp); 373 if (CLSP(tsp)) 374 delwin(CLSP(tsp)); 375 tsp->cl_private = subwin(stdscr, tsp->rows, tsp->cols, 376 tsp->roff, tsp 527 SCR *psp, *tsp; local [all...] |
/freebsd-11-stable/include/protocols/ |
H A D | timed.h | 44 struct tsp { struct
|