/original-bsd/sys/sparc/sparc/ |
H A D | intr.c | 157 register struct trapvec *tv; local 169 tv = &trapbase[T_L1INT - 1 + level]; 173 tv->tv_instr[1] != I_BA(0, displ) || 174 tv->tv_instr[2] != I_RDPSR(I_L0)) 177 tv->tv_instr[0], tv->tv_instr[1], tv->tv_instr[2], 201 register struct trapvec *tv; local 208 tv = &trapbase[T_L1INT - 1 + level]; 218 if (tv->tv_instr[0] != I_MOVi(I_L3, level) || 219 tv->tv_instr[1] != I_BA(0, displ) || 220 tv->tv_instr[2] != I_RDPSR(I_L0)) [all …]
|
/original-bsd/games/tetris/ |
H A D | input.c | 27 #define TV_POS(tv) \ argument 28 ((tv)->tv_sec > 0 || ((tv)->tv_sec == 0 && (tv)->tv_usec > 0)) 102 struct timeval tv; in tsleep() local 105 tv.tv_sec = 0; in tsleep() 106 tv.tv_usec = fallrate; in tsleep() 107 while (TV_POS(&tv)) in tsleep() 108 if (rwait(&tv) && read(0, &c, 1) != 1) in tsleep() 118 struct timeval tv; in eat_input() local 122 tv.tv_sec = tv.tv_usec = 0; in eat_input() 123 } while (rwait(&tv) && read(0, &c, 1) == 1); in eat_input()
|
/original-bsd/lib/libc/gen/ |
H A D | utime.c | 21 struct timeval tv[2], *tvp; local 24 tv[0].tv_sec = times->actime; 25 tv[1].tv_sec = times->modtime; 26 tv[0].tv_usec = tv[1].tv_usec = 0; 27 tvp = tv;
|
/original-bsd/lib/librpc/rpc/ |
H A D | clnt_generic.c | 57 struct timeval tv; local 86 tv.tv_sec = 5; 87 tv.tv_usec = 0; 88 client = clntudp_create(&sin, prog, vers, tv, &sock); 92 tv.tv_sec = 25; 93 clnt_control(client, CLSET_TIMEOUT, &tv); 100 tv.tv_sec = 25; 101 tv.tv_usec = 0; 102 clnt_control(client, CLSET_TIMEOUT, &tv);
|
/original-bsd/sys/netns/ |
H A D | spp_timer.h | 86 #define SPPT_RANGESET(tv, value, tvmin, tvmax) { \ argument 87 (tv) = (value); \ 88 if ((tv) < (tvmin)) \ 89 (tv) = (tvmin); \ 90 else if ((tv) > (tvmax)) \ 91 (tv) = (tvmax); \
|
/original-bsd/sys/netinet/ |
H A D | tcp_timer.h | 88 #define TCPT_RANGESET(tv, value, tvmin, tvmax) { \ argument 89 (tv) = (value); \ 90 if ((tv) < (tvmin)) \ 91 (tv) = (tvmin); \ 92 else if ((tv) > (tvmax)) \ 93 (tv) = (tvmax); \
|
/original-bsd/sys/sys/ |
H A D | time.h | 32 #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ argument 33 (ts)->ts_sec = (tv)->tv_sec; \ 34 (ts)->ts_nsec = (tv)->tv_usec * 1000; \ 36 #define TIMESPEC_TO_TIMEVAL(tv, ts) { \ argument 37 (tv)->tv_sec = (ts)->ts_sec; \ 38 (tv)->tv_usec = (ts)->ts_nsec / 1000; \ 85 int itimerfix __P((struct timeval *tv)); 87 void microtime __P((struct timeval *tv));
|
/original-bsd/games/worm/ |
H A D | worm.c | 38 WINDOW *tv; variable 79 box(tv, '*', '*'); 80 scrollok(tv, FALSE); 86 wrefresh(tv); 132 waddch(tv, chr); 171 waddch(tv, value+'0'); in prize() 172 wrefresh(tv); in prize() 212 wmove(tv, y, x); 233 wrefresh(tv); 271 touchwin(tv); in setup() [all …]
|
/original-bsd/usr.bin/ar/ |
H A D | extract.c | 43 struct timeval tv[2]; local 48 tv[0].tv_usec = tv[1].tv_usec = 0; 85 tv[0].tv_sec = tv[1].tv_sec = chdr.date; 86 if (utimes(file, tv)) {
|
/original-bsd/old/refer/refer/ |
H A D | refer6.c | 133 class (nt, tv) in class() argument 134 char *tv[]; in class() 136 if (hastype (nt, tv, 'J')) 138 if (hastype (nt, tv, 'B')) 140 if (hastype (nt, tv, 'R')) 142 if (hastype (nt, tv, 'G')) 144 if (hastype (nt, tv, 'I')) 146 if (hastype (nt, tv,'M')) 151 hastype (nt, tv, c) in hastype() argument 152 char *tv[]; in hastype() [all …]
|
/original-bsd/sys/kern/ |
H A D | kern_time.c | 74 if (SCARG(uap, tv) && (error = copyin((caddr_t)SCARG(uap, tv), 80 if (SCARG(uap, tv)) { 315 itimerfix(tv) in itimerfix() argument 316 struct timeval *tv; in itimerfix() 319 if (tv->tv_sec < 0 || tv->tv_sec > 100000000 || 320 tv->tv_usec < 0 || tv->tv_usec >= 1000000) 322 if (tv->tv_sec == 0 && tv->tv_usec != 0 && tv->tv_usec < tick) 323 tv->tv_usec = tick;
|
H A D | vfs_xxx.c | 109 time_t tv[2]; in outime() local 111 u.u_error = copyin((caddr_t)uap->tptr, (caddr_t)tv, sizeof (tv)); in outime() 115 vattr.va_atime.tv_sec = tv[0]; in outime() 117 vattr.va_mtime.tv_sec = tv[1]; in outime()
|
/original-bsd/usr.bin/touch/ |
H A D | touch.c | 43 struct timeval tv[2]; local 48 if (gettimeofday(&tv[0], NULL)) 67 stime_file(optarg, tv); 71 stime_arg1(optarg, tv); 93 stime_arg2(*argv++, len == 10, tv); 99 tv[1] = tv[0]; 124 TIMESPEC_TO_TIMEVAL(&tv[0], &sb.st_atimespec); 126 TIMESPEC_TO_TIMEVAL(&tv[1], &sb.st_mtimespec); 129 if (!utimes(*argv, tv))
|
/original-bsd/libexec/getty/ |
H A D | get_date.c | 31 struct timeval tv; local 35 gettimeofday(&tv, 0); 36 tmp = localtime(&tv.tv_sec);
|
/original-bsd/usr.bin/window/ |
H A D | wwiomux.c | 42 struct timeval tv; in wwiomux() local 87 tv.tv_sec = 30; in wwiomux() 88 tv.tv_usec = 0; in wwiomux() 90 tv.tv_sec = 0; in wwiomux() 91 tv.tv_usec = 10000; in wwiomux() 94 n = select(n + 1, &imask, (fd_set *)0, (fd_set *)0, &tv); in wwiomux()
|
/original-bsd/sys/ufs/ufs/ |
H A D | ufs_inode.c | 44 struct timeval tv; local 69 tv = time; 70 VOP_UPDATE(vp, &tv, &tv, 0);
|
/original-bsd/usr.sbin/amd/amd/ |
H A D | host_ops.c | 148 struct timeval tv; local 154 tv.tv_sec = 20; 155 tv.tv_usec = 0; 164 clnt_stat = clnt_call(client, MOUNTPROC_MNT, xdr_dirpath, &dir, xdr_fhstatus, fhp, tv); 223 struct timeval tv; local 224 tv.tv_sec = 10; tv.tv_usec = 0; 250 (client = clntudp_create(&sin, MOUNTPROG, MOUNTVERS, tv, &sock)) == NULL) { 497 struct timeval tv; local 498 tv.tv_sec = 10; tv.tv_usec = 0; 515 (client = clntudp_create(&sin, MOUNTPROG, MOUNTVERS, tv, &sock)) == NULL) { [all …]
|
/original-bsd/sys/ufs/ffs/ |
H A D | ufs_inode.c | 62 struct timeval tv; local 99 tv = time; 100 VOP_UPDATE(vp, &tv, &tv, 0);
|
/original-bsd/sys/netiso/ |
H A D | tp_param.h | 84 #define TP_RANGESET(tv, value, min, max) \ argument 85 ((tv = value) > (max) ? (tv = max) : (tv < min ? tv = min : tv))
|
/original-bsd/sys/ufs/lfs/ |
H A D | lfs_inode.c | 128 struct timeval tv; local 140 tv = time; 149 return (VOP_UPDATE(vp, &tv, &tv, 0)); 158 return (VOP_UPDATE(vp, &tv, &tv, 0)); 340 e2 = VOP_UPDATE(vp, &tv, &tv, 0);
|
/original-bsd/sys/vax/vax/ |
H A D | trap.c | 167 struct timeval *tv = &u.u_ru.ru_stime; local 169 ticks = ((tv->tv_sec - syst.tv_sec) * 1000 + 170 (tv->tv_usec - syst.tv_usec) / 1000) / (tick / 1000); 270 struct timeval *tv = &u.u_ru.ru_stime; local 272 ticks = ((tv->tv_sec - syst.tv_sec) * 1000 + 273 (tv->tv_usec - syst.tv_usec) / 1000) / (tick / 1000);
|
/original-bsd/sys/pmax/dev/ |
H A D | fbreg.h | 128 #define TO_MS(tv) ((tv.tv_sec * 1000) + (tv.tv_usec / 1000)) argument
|
/original-bsd/bin/date/ |
H A D | date.c | 120 struct timeval tv; local 183 tv.tv_sec = tval; 184 tv.tv_usec = 0; 185 if (settimeofday(&tv, NULL)) {
|
/original-bsd/sys/tahoe/tahoe/ |
H A D | trap.c | 195 struct timeval *tv = &u.u_ru.ru_stime; local 197 ticks = ((tv->tv_sec - syst.tv_sec) * 1000 + 198 (tv->tv_usec - syst.tv_usec) / 1000) / (tick / 1000); 314 struct timeval *tv = &u.u_ru.ru_stime; local 316 ticks = ((tv->tv_sec - syst.tv_sec) * 1000 + 317 (tv->tv_usec - syst.tv_usec) / 1000) / (tick / 1000);
|
/original-bsd/local/kerberosIV/compile_et/ |
H A D | error_table.y | 82 struct timeval tv; local 84 gettimeofday(&tv, &tzp); 85 gensym_n = (tv.tv_sec%10000)*100 + tv.tv_usec/10000;
|