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

12

/haiku/headers/posix/sys/
H A Dtime.h44 extern int gettimeofday(struct timeval *tv, void *tz);
/haiku/headers/private/firewire/
H A Dfirewirereg.h305 // struct timeval tv;
306 bigtime_t tv; member in struct:fw_xfer
/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/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/add-ons/kernel/file_systems/bfs/
H A Dbfs.h242 static int64 ToInode(const timespec& tv) argument
243 { return ((int64)tv.tv_sec << INODE_TIME_SHIFT)
244 + unique_from_nsec(tv.tv_nsec); }
/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/src/apps/glteapot/
H A DGLObject.h29 float tu,tv; member in struct:point
/haiku/src/kits/support/
H A DDateTime.cpp149 struct timeval tv; local
150 if (gettimeofday(&tv, NULL) != 0) {
152 time(&tv.tv_sec);
158 timeinfo = gmtime_r(&tv.tv_sec, &result);
160 timeinfo = localtime_r(&tv.tv_sec, &result);
167 tv.tv_usec);
/haiku/src/libs/uuid/
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);
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,
/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/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/system/libroot/posix/sys/
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 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;
/haiku/src/tests/add-ons/kernel/drivers/tty/
H A Dtty-test.cpp156 timeval tv = { timeout / 1000000, timeout % 1000000 }; local
159 (timeout >= 0 ? &tv : NULL));
/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;
H A Drealtime_sem_test1.cpp30 timeval tv; local
31 gettimeofday(&tv, NULL);
32 return (bigtime_t)tv.tv_sec * 1000000 + tv.tv_usec;
/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/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/headers/private/userlandfs/fuse/
H A Dfuse.h445 int (*utimens) (const char *, const struct timespec tv[2]);
868 const struct timespec tv[2]);
/haiku/src/add-ons/kernel/bus_managers/firewire/
H A Dfirewire.cpp289 // struct timeval tv;
291 bigtime_t tv; local
298 // microtime(&tv);
299 // timevalsub(&tv, &split_timeout);
300 tv = system_time();
301 tv -= 200*1000;
311 // if (timevalcmp(&xfer->tv, &tv, >))
312 if (xfer->tv > tv)
[all...]

Completed in 145 milliseconds

12