/openbsd-current/lib/libc/gen/ |
H A D | alarm.c | 37 struct itimerval itv, oitv; local 39 timerclear(&itv.it_interval); 40 itv.it_value.tv_sec = secs; 41 itv.it_value.tv_usec = 0; 42 if (setitimer(ITIMER_REAL, &itv, &oitv) == -1)
|
/openbsd-current/regress/sys/kern/itimer/ |
H A D | itimer.c | 26 struct itimerval itv; local 53 itv.it_value.tv_sec = 0; 54 itv.it_value.tv_usec = 100000; 55 itv.it_interval = itv.it_value; 57 if (setitimer(which, &itv, NULL) != 0)
|
/openbsd-current/games/atc/ |
H A D | main.c | 65 struct itimerval itv; local 170 itv.it_value.tv_sec = 0; 171 itv.it_value.tv_usec = 1; 172 itv.it_interval.tv_sec = sp->update_secs; 173 itv.it_interval.tv_usec = 0; 174 setitimer(ITIMER_REAL, &itv, NULL); 180 itv.it_value.tv_sec = 0; 181 itv.it_value.tv_usec = 0; 182 setitimer(ITIMER_REAL, &itv, NULL); 186 itv [all...] |
H A D | graphics.c | 285 struct itimerval itv; local 297 itv.it_value.tv_sec = 0; 298 itv.it_value.tv_usec = 0; 299 setitimer(ITIMER_REAL, &itv, NULL); 356 struct itimerval itv; local 359 itv.it_value.tv_sec = 0; 360 itv.it_value.tv_usec = 0; 361 setitimer(ITIMER_REAL, &itv, NULL);
|
/openbsd-current/sys/kern/ |
H A D | kern_time.c | 521 setitimer(int which, const struct itimerval *itv, struct itimerval *olditv) argument 533 if (itv != NULL) { 534 TIMEVAL_TO_TIMESPEC(&itv->it_value, &its.it_value); 535 TIMEVAL_TO_TIMESPEC(&itv->it_interval, &its.it_interval); 546 if (itv != NULL) { 583 struct itimerval itv; local 586 timerclear(&itv.it_value); 587 timerclear(&itv.it_interval); 590 setitimer(i, &itv, NULL); 598 syscallarg(struct itimerval *) itv; 712 itimerfix(struct itimerval *itv) argument [all...] |
/openbsd-current/usr.sbin/iostat/ |
H A D | iostat.c | 120 struct itimerval itv; local 184 itv.it_value.tv_sec = interval; 185 itv.it_value.tv_usec = 0; 186 itv.it_interval = itv.it_value; 187 if (setitimer(ITIMER_REAL, &itv, NULL) == -1)
|
/openbsd-current/usr.bin/kstat/ |
H A D | kstat.c | 163 struct itimerval itv; local 210 itv.it_value.tv_sec = wait; 211 itv.it_value.tv_usec = 0; 212 itv.it_interval = itv.it_value; 213 if (setitimer(ITIMER_REAL, &itv, NULL) == -1)
|
/openbsd-current/regress/sys/kern/flock/ |
H A D | flock.c | 974 struct itimerval itv; local 1021 itv.it_interval.tv_sec = 0; 1022 itv.it_interval.tv_usec = 0; 1023 itv.it_value.tv_sec = 0; 1024 itv.it_value.tv_usec = 2; 1025 setitimer(ITIMER_REAL, &itv, NULL); 1061 struct itimerval itv; local 1109 itv.it_interval.tv_sec = 0; 1110 itv.it_interval.tv_usec = 0; 1111 itv [all...] |
/openbsd-current/gnu/usr.bin/perl/dist/Time-HiRes/ |
H A D | HiRes.xs | 386 struct itimerval itv; 387 itv.it_value.tv_sec = usec / IV_1E6; 388 itv.it_value.tv_usec = usec % IV_1E6; 389 itv.it_interval.tv_sec = uinterval / IV_1E6; 390 itv.it_interval.tv_usec = uinterval % IV_1E6; 391 return setitimer(ITIMER_REAL, &itv, oitv); 1079 struct itimerval itv; 1080 if (hrt_ualarm_itimero(&itv, useconds, uinterval)) { 1085 RETVAL = itv.it_value.tv_sec * IV_1E6 + itv [all...] |
/openbsd-current/regress/lib/libevent/ |
H A D | event_regress.c | 601 struct itimerval itv; local 610 memset(&itv, 0, sizeof(itv)); 611 itv.it_value.tv_sec = 1; 612 if (setitimer(ITIMER_REAL, &itv, NULL) == -1) 627 struct itimerval itv; local 637 memset(&itv, 0, sizeof(itv)); 638 itv.it_value.tv_sec = 1; 639 if (setitimer(ITIMER_REAL, &itv, NUL [all...] |
/openbsd-current/usr.bin/ftp/ |
H A D | util.c | 1029 struct itimerval itv; local 1031 itv.it_value.tv_sec = wait; 1032 itv.it_value.tv_usec = 0; 1033 itv.it_interval = itv.it_value; 1034 setitimer(ITIMER_REAL, &itv, NULL);
|
/openbsd-current/gnu/llvm/compiler-rt/include/sanitizer/ |
H A D | netbsd_syscall_hooks.h | 437 #define __sanitizer_syscall_pre_compat_50_setitimer(which, itv, oitv) \ 439 (long long)(which), (long long)(itv), (long long)(oitv)) 440 #define __sanitizer_syscall_post_compat_50_setitimer(res, which, itv, oitv) \ 442 res, (long long)(which), (long long)(itv), (long long)(oitv)) 451 #define __sanitizer_syscall_pre_compat_50_getitimer(which, itv) \ 453 (long long)(itv)) 454 #define __sanitizer_syscall_post_compat_50_getitimer(res, which, itv) \ 456 (long long)(itv)) 2334 #define __sanitizer_syscall_pre___setitimer50(which, itv, oitv) \ 2336 (long long)(which), (long long)(itv), (lon [all...] |
/openbsd-current/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_syscalls_netbsd.inc | 3119 struct __sanitizer_itimerval *itv = (struct __sanitizer_itimerval *)itv_; 3120 if (itv) { 3121 PRE_READ(&itv->it_interval.tv_sec, sizeof(__sanitizer_time_t)); 3122 PRE_READ(&itv->it_interval.tv_usec, sizeof(__sanitizer_suseconds_t)); 3123 PRE_READ(&itv->it_value.tv_sec, sizeof(__sanitizer_time_t)); 3124 PRE_READ(&itv->it_value.tv_usec, sizeof(__sanitizer_suseconds_t));
|
/openbsd-current/gnu/usr.bin/perl/ |
H A D | syscall_emulator.c | 433 const struct itimerval * itv = (const struct itimerval *)va_arg(args, long); local 435 ret = setitimer(which, itv, oitv); 440 struct itimerval * itv = (struct itimerval *)va_arg(args, long); local 441 ret = getitimer(which, itv);
|
/openbsd-current/sys/sys/ |
H A D | syscallargs.h | 329 syscallarg(const struct itimerval *) itv; member in struct:sys_setitimer_args 335 syscallarg(struct itimerval *) itv; member in struct:sys_getitimer_args
|
/openbsd-current/gnu/llvm/clang/lib/CodeGen/ |
H A D | ItaniumCXXABI.cpp | 2639 auto itv = Dtors.rbegin(); local 2640 while (itv != Dtors.rend()) { 2641 llvm::Function *Dtor = *itv; 2654 (itv + 1) != Dtors.rend() ? "unatexit.call" : "destruct.end"); 2668 itv++;
|