Searched refs:tv (Results 1 - 25 of 46) sorted by relevance

12

/haiku/src/system/libroot/posix/sys/
H A Dgettimeofday.c12 gettimeofday(struct timeval *tv, void *tz) argument
14 if (tv != NULL) {
17 tv->tv_sec = usecs / 1000000;
18 tv->tv_usec = usecs % 1000000;
H A Dftime.c15 struct timeval tv; local
20 gettimeofday(&tv, &tz);
22 timeb->time = tv.tv_sec;
23 timeb->millitm = tv.tv_usec / 1000UL;
H A Dselect.cpp24 const struct timespec *tv, const sigset_t *beosSignalMask);
26 struct fd_set *errorBits, const struct timespec *tv,
32 struct fd_set *errorBits, const struct timespec *tv,
38 if (tv != NULL && !timespec_to_bigtime(*tv, timeout))
53 struct fd_set *errorBits, const struct timespec *tv,
58 if (tv != NULL && !timespec_to_bigtime(*tv, timeout))
70 struct fd_set *errorBits, struct timeval *tv)
74 if (tv !
31 __pselect_beos(int numBits, struct fd_set *readBits, struct fd_set *writeBits, struct fd_set *errorBits, const struct timespec *tv, const sigset_t *beosSignalMask) argument
52 __pselect(int numBits, struct fd_set *readBits, struct fd_set *writeBits, struct fd_set *errorBits, const struct timespec *tv, const sigset_t *sigMask) argument
69 select(int numBits, struct fd_set *readBits, struct fd_set *writeBits, struct fd_set *errorBits, struct timeval *tv) argument
[all...]
/haiku/src/tools/fs_shell/
H A Dtime.cpp39 timeval tv; local
40 gettimeofday(&tv, NULL);
42 return tv.tv_sec;
49 timeval tv; local
50 gettimeofday(&tv, NULL);
52 return tv.tv_sec * 1000000LL + tv.tv_usec;
/haiku/src/libs/compat/openbsd_network/compat/sys/
H A Dtime.h15 struct timeval tv; local
16 getmicrouptime(&tv);
17 return tv.tv_sec;
22 USEC_TO_TIMEVAL(uint64_t us, struct timeval *tv) argument
24 tv->tv_sec = us / 1000000;
25 tv->tv_usec = us % 1000000;
/haiku/src/libs/uuid/
H A Duuid_time.c48 struct timeval tv; local
59 tv.tv_sec = clock_reg / 10000000;
60 tv.tv_usec = (clock_reg % 10000000) / 10;
63 *ret_tv = tv;
65 return tv.tv_sec;
114 struct timeval tv; local
127 time_reg = uuid_time(buf, &tv);
156 printf("UUID time is: (%ld, %ld): %s\n", tv.tv_sec, (long)tv.tv_usec,
H A Dgen_uuid.c75 struct timeval tv; local
80 gettimeofday(&tv, 0);
89 srand((getpid() << 16) ^ getuid() ^ tv.tv_sec ^ tv.tv_usec);
91 jrand_seed[0] = getpid() ^ (tv.tv_sec & 0xFFFF);
92 jrand_seed[1] = getppid() ^ (tv.tv_usec & 0xFFFF);
93 jrand_seed[2] = (tv.tv_sec ^ tv.tv_usec) >> 16;
97 gettimeofday(&tv, 0);
98 for (i = (tv
235 struct timeval tv; local
[all...]
H A Dtest_uuid.c76 struct timeval tv; local
143 tv.tv_sec = 0;
144 tv.tv_usec = 0;
145 time_reg = uuid_time(buf, &tv);
147 time_gen, time_reg, tv.tv_sec, (long)tv.tv_usec);
/haiku/src/system/libroot/posix/
H A Dpoll.cpp19 extern "C" int __ppoll(struct pollfd *fds, nfds_t numfds, const struct timespec *tv,
31 __ppoll(struct pollfd *fds, nfds_t numfds, const struct timespec *tv, argument
36 if (tv != NULL && !timespec_to_bigtime(*tv, timeout))
/haiku/src/tests/system/network/
H A Dfirefox_crash.cpp78 struct timeval tv; local
79 tv.tv_sec = 100000;
80 tv.tv_usec = 0;
84 if (select(pair[0] + 1, NULL, &set, NULL, &tv) < 0)
100 struct timeval tv; local
101 tv.tv_sec = 100000;
102 tv.tv_usec = 0;
106 if (select(listenSocket + 1, &set, NULL, NULL, &tv) < 0)
H A Dselect_test.c19 struct timeval tv; local
35 tv.tv_sec = 5;
36 tv.tv_usec = 0;
40 rv = select(s + 1, &fdr, NULL, &fde, &tv);
H A Dselect_test2.c19 struct timeval tv; local
46 tv.tv_sec = 5;
47 tv.tv_usec = 0;
51 rv = select(s + 1, &fdr, NULL, &fde, &tv);
H A Dselect_test_big.c22 struct timeval tv; local
62 tv.tv_sec = 5;
63 tv.tv_usec = 0;
67 rv = select(max + 1, &fdr, NULL, &fde, &tv);
/haiku/src/apps/autoraise/
H A DAutoRaiseIcon.cpp51 ConfigMenu::ConfigMenu(TrayView *tv, bool useMag) argument
58 AutoRaiseSettings *s = tv->Settings();
90 tmpm->SetTargetForItems(tv);
101 tmpi->SetMarked(tv->fNormalMM == B_NORMAL_MOUSE);
107 tmpi->SetMarked(tv->fNormalMM == B_FOCUS_FOLLOWS_MOUSE);
113 tmpi->SetMarked(tv->fNormalMM == (mode_mouse)B_WARP_FOCUS_FOLLOWS_MOUSE);
119 tmpi->SetMarked(tv->fNormalMM == (mode_mouse)B_INSTANT_WARP_FOCUS_FOLLOWS_MOUSE);
122 tmpm->SetTargetForItems(tv);
133 tmpi->SetMarked(tv->raise_delay == 100000LL);
139 tmpi->SetMarked(tv
403 TrayView *tv = (TrayView *)arg; local
431 TrayView *tv = (TrayView *)arg; local
[all...]
H A DAutoRaiseIcon.h88 ConfigMenu(TrayView *tv, bool useMag);
/haiku/src/libs/compat/freebsd_network/
H A Dfbsd_time.c40 struct timeval tv, delta; local
43 getmicrouptime(&tv); /* NB: 10ms precision */
44 delta = tv;
53 *lasttime = tv;
/haiku/src/kits/network/libnetapi/
H A DAbstractSocket.cpp120 struct timeval tv; local
121 tv.tv_sec = timeout / 1000000LL;
122 tv.tv_usec = timeout % 1000000LL;
124 if (setsockopt(fSocket, SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(timeval)) != 0
125 || setsockopt(fSocket, SOL_SOCKET, SO_RCVTIMEO, &tv,
137 struct timeval tv; local
138 socklen_t size = sizeof(tv);
139 if (getsockopt(fSocket, SOL_SOCKET, SO_SNDTIMEO, &tv, &size) != 0)
142 return tv.tv_sec * 1000000LL + tv
[all...]
/haiku/src/tests/system/libroot/posix/
H A DTestUnitUtils.h11 timeval tv; local
12 gettimeofday(&tv, NULL);
13 timeout.tv_sec = tv.tv_sec + relativeTimeout / 1000000;
14 timeout.tv_nsec = (tv.tv_usec + relativeTimeout % 1000000) * 1000;
/haiku/src/system/libroot/posix/stdlib/
H A Dmktemp.c120 struct timeval tv; local
121 gettimeofday(&tv, 0);
122 seed = (getpid() << 16) ^ getuid() ^ tv.tv_sec ^ tv.tv_usec;
/haiku/src/add-ons/kernel/drivers/disk/nvme/libnvme/
H A Dnvme_common.h227 struct timeval tv; local
229 tv.tv_sec = usecs / 1000000;
230 tv.tv_usec = usecs % 1000000;
231 select(0, NULL, NULL, NULL, &tv);
239 struct timeval tv; local
241 tv.tv_sec = msecs / 1000;
242 tv.tv_usec = (msecs - tv.tv_sec * 1000) * 1000;
243 select(0, NULL, NULL, NULL, &tv);
/haiku/src/system/libroot/posix/glibc/stdio-common/
H A Dtempname.c117 struct timeval tv; \
118 __gettimeofday (&tv, NULL); \
119 value = ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec; \
269 struct timeval tv; local
270 gettimeofday(&tv, NULL);
271 random_time_bits = ((uint64_t) tv.tv_usec << 16) ^ tv.tv_sec;
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/
H A Dif_ath_alq.c159 struct timeval tv; local
164 microtime(&tv);
181 ap->tstamp_sec = htobe32((uint32_t) tv.tv_sec);
182 ap->tstamp_usec = htobe32((uint32_t) tv.tv_usec);
/haiku/src/apps/glteapot/
H A DGLObject.h29 float tu,tv; member in struct:point
/haiku/src/add-ons/screen_savers/flurry/
H A DFlurry.cpp313 struct timeval tv; local
314 gettimeofday(&tv, NULL);
316 srand((999 * tv.tv_sec) + (1001 * tv.tv_usec) + (1003 * getpid()));
/haiku/headers/posix/sys/
H A Dtime.h44 extern int gettimeofday(struct timeval *tv, void *tz);

Completed in 218 milliseconds

12