/freebsd-11-stable/sys/rpc/ |
H A D | clnt_vc.c | 136 struct timeval now; local 224 getmicrotime(&now); 225 ct->ct_xid = ((uint32_t)++disrupt) ^ __RPC_GETXID(&now);
|
H A D | rpc_com.h | 60 #define __RPC_GETXID(now) ((uint32_t)curproc->p_pid ^ (uint32_t)(now)->tv_sec ^ \ 61 (uint32_t)(now)->tv_usec) 65 #define __RPC_GETXID(now) ((uint32_t)getpid() ^ (uint32_t)(now)->tv_sec ^ \ 66 (uint32_t)(now)->tv_usec)
|
/freebsd-11-stable/sys/sys/ |
H A D | callout.h | 131 void callout_process(sbintime_t now);
|
H A D | devicestat.h | 195 void devstat_start_transaction(struct devstat *ds, struct bintime *now); 200 struct bintime *now, struct bintime *then); 203 struct bintime *now);
|
/freebsd-11-stable/sys/x86/x86/ |
H A D | delay.c | 55 uint64_t end, now; local 62 now = rdtsc(); 63 end = now + tsc_freq * n / 1000000; 66 now = rdtsc(); 67 } while (now < end); 76 uint64_t end, freq, now; local 95 now = 0; 102 now += mask - last + u + 1; 104 now += u - last; 106 } while (now < en [all...] |
H A D | pvclock.c | 173 uint64_t now, last; local 176 pvclock_read_time_info(ti, &now, &flags); 179 return (now); 188 if (last > now) 190 } while (!atomic_cmpset_64(&pvclock_last_cycles, last, now)); 192 return (now);
|
/freebsd-11-stable/sys/xen/interface/hvm/ |
H A D | hvm_op.h | 153 uint64_t now; /* OUT */ member in struct:xen_hvm_get_time
|
/freebsd-11-stable/sys/xen/interface/ |
H A D | platform.h | 358 uint64_t now; member in struct:xenpf_getidletime
|
/freebsd-11-stable/tools/build/ |
H A D | futimens.c | 44 struct timeval now, tv[2], *tvp; local 87 if (gettimeofday(&now, NULL) == -1) 90 tv[0] = now; 92 tv[1] = now;
|
H A D | utimensat.c | 44 struct timeval now, tv[2], *tvp; local 91 if (gettimeofday(&now, NULL) == -1) 94 tv[0] = now; 96 tv[1] = now;
|
/freebsd-11-stable/tools/regression/priv/ |
H A D | priv_settimeofday.c | 47 static struct timeval now; variable in typeref:struct:timeval 53 if (gettimeofday(&now, NULL) < 0) { 65 error = settimeofday(&now, NULL);
|
/freebsd-11-stable/tools/regression/security/cap_test/ |
H A D | cap_test_pdfork.c | 65 time_t now; local 91 now = time(NULL); 92 CHECK(now != (time_t)-1); 94 CHECK(now >= stat.st_birthtime); 95 CHECK((now - stat.st_birthtime) < 2);
|
/freebsd-11-stable/tools/tools/mctest/ |
H A D | mctest_run.sh | 62 now=`date "+%Y%m%d%H%M"` 65 output=$host\_$interface\_$size\_$number\.$now 74 $command -M $# -b $base -g $group -n $number -s $size -i $local_interface -t $gap > `uname -n`\_$size\_$number\.$now
|
/freebsd-11-stable/tools/tools/net80211/stumbler/ |
H A D | stumbler.c | 867 unsigned long elapsed_ms(struct timeval* now, struct timeval* prev) { argument 870 if (now->tv_sec > prev->tv_sec) 872 now->tv_usec; 874 assert(now->tv_sec == prev->tv_sec); 875 elapsed = now->tv_usec - prev->tv_usec; 879 elapsed += (now->tv_sec - prev->tv_sec)*1000; 917 struct timeval now; local 927 if (gettimeofday(&now, NULL) == -1) 932 elapsed = elapsed_ms(&now, &node->seen);
|
/freebsd-11-stable/tools/tools/net80211/w00t/ap/ |
H A D | ap.c | 791 struct timeval to, now; local 798 if (gettimeofday(&now, NULL) == -1) 802 el = elapsed(&p->blast, &now); 813 el = elapsed(&p->plast, &now);
|
/freebsd-11-stable/tools/tools/net80211/w00t/libw00t/ |
H A D | w00t.c | 376 int elapsed(struct timeval *past, struct timeval *now) argument 380 el = now->tv_sec - past->tv_sec; 383 el = now->tv_usec - past->tv_usec; 387 el += now->tv_usec;
|
H A D | w00t.h | 54 int elapsed(struct timeval *past, struct timeval *now);
|
/freebsd-11-stable/tools/tools/net80211/w00t/prga/ |
H A D | prga.c | 335 struct timeval now; local 343 if (gettimeofday(&now, NULL) == -1) 347 el = elapsed(&p->last, &now); 364 now.tv_sec = el/1000/1000; 365 now.tv_usec = el - now.tv_sec*1000*1000; 369 if (select(p->rx+1, &fds, NULL, NULL, &now) == -1) 403 struct timeval now; local 413 if (gettimeofday(&now, NULL) == -1) 416 el = elapsed(&p->last, &now); [all...] |
/freebsd-11-stable/tools/tools/net80211/wesside/wesside/ |
H A D | wesside.c | 265 struct timeval now; local 286 if (gettimeofday(&now, NULL) == -1) { 292 ((double) now.tv_sec - real_start.tv_sec)/60.0); 1934 struct timeval now; local 1937 if (gettimeofday(&now, NULL) == -1) { 1942 sec = now.tv_sec - last_ip.tv_sec; 2278 int elapsedd(struct timeval *past, struct timeval *now) argument 2282 el = now->tv_sec - past->tv_sec; 2285 el = now->tv_usec - past->tv_usec; 2289 el += now 2392 struct timeval now; local [all...] |
/freebsd-11-stable/tools/tools/net80211/wlanwatch/ |
H A D | wlanwatch.c | 291 time_t now = time(NULL); local 292 char *cnow = ctime(&now);
|
/freebsd-11-stable/tools/tools/netrate/netreceive/ |
H A D | netreceive.c | 162 struct timespec now, then, delta; local 163 /* now the parent collects and prints results */ 180 clock_gettime(CLOCK_REALTIME, &now); 181 delta = now; 183 then = now;
|
/freebsd-11-stable/tools/tools/vhba/rptluns/ |
H A D | vhba_rptluns.c | 57 struct timeval now; local 65 getmicrotime(&now); 66 if (now.tv_usec & 0x1) {
|
/freebsd-11-stable/usr.bin/at/ |
H A D | at.c | 296 /* We no longer need suid root; now we just need to be able to write 647 time_t now; local 656 now = tv[0].tv_sec; 657 if ((t = localtime(&now)) == NULL) 878 * case, it's already been set. If not, set it now.
|
H A D | parsetime.c | 90 { "now", NOW,0 }, /* opt prefix for PLUS */ 219 /* eat whitespace now - if we walk off the end of the argument, 327 * plus() parses a now + time 443 time_t now; local 445 time(&now); 446 lt = localtime(&now); 618 /* now is optional prefix for PLUS tree */
|
/freebsd-11-stable/usr.bin/calendar/ |
H A D | day.c | 49 settimes(time_t now, int before, int after, int friday, struct tm *tp1, struct tm *tp2) argument 54 localtime_r(&now, &tp); 60 time1 = now - SECSPERDAY * before; 63 time2 = now + SECSPERDAY * after;
|