Searched refs:tv (Results 1 - 25 of 46) sorted by last modified time

12

/haiku/src/bin/network/traceroute/
H A Dtraceroute.c302 struct timeval tv; /* time packet left */ member in struct:outdata
1053 memcpy(&outdata.tv, &t1, sizeof(outdata.tv));
/haiku/src/bin/network/ping/
H A Dping6.c1415 struct timespec tv; local
1417 (void)clock_gettime(CLOCK_MONOTONIC, &tv);
1424 tv32.tv32_sec = (uint32_t)htonl(tv.tv_sec);
1425 tv32.tv32_nsec = (uint32_t)htonl(tv.tv_nsec);
1573 struct timespec tv, tp; local
1582 (void)clock_gettime(CLOCK_MONOTONIC, &tv);
1622 timespecsub(&tv, &tp, &tv);
1623 triptime = ((double)tv.tv_sec) * 1000.0 +
1624 ((double)tv
[all...]
H A Dping.c953 struct timespec *tv = NULL; local
971 cmsg->cmsg_len == CMSG_LEN(sizeof *tv)) {
974 tv = &now;
977 if (tv == NULL) {
979 tv = &now;
981 pr_pack((char *)packet, cc, &from, tv);
1129 pr_pack(char *buf, ssize_t cc, struct sockaddr_in *from, struct timespec *tv) argument
1202 timespecsub(tv, &tv1, tv);
1203 triptime = ((double)tv
[all...]
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/
H A DFUSEVolume.cpp1585 timespec tv[2] = { local
1600 tv[0].tv_sec = currentStat.st_atime;
1602 tv[1].tv_sec = currentStat.st_mtime;
1605 int fuseError = fuse_fs_utimens(fFS, path, tv);
H A Dfuse_fs.cpp244 const struct timespec tv[2])
247 return fs->ops.utimens(path, tv);
251 tv[0].tv_sec, // access time
252 tv[1].tv_sec // modification time
243 fuse_fs_utimens(struct fuse_fs* fs, const char* path, const struct timespec tv[2]) argument
/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...]
H A DNetEndpoint.cpp477 struct timeval tv; local
489 tv.tv_sec = timeout / 1000000;
490 tv.tv_usec = (timeout % 1000000);
496 timeout >= 0 ? &tv : NULL);
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_send.c1203 struct timeval tv, *tvp; local
1208 tvp = &tv;
1209 tv = evTimeVal(*tsp);
1218 *tsp = evTimeSpec(tv);
/haiku/src/system/libnetwork/netresolv/isc/
H A Dev_timers.c167 evTimeSpec(struct timeval tv) { argument
170 ts.tv_sec = tv.tv_sec;
171 ts.tv_nsec = tv.tv_usec * 1000;
177 struct timeval tv; local
179 tv.tv_sec = ts.tv_sec;
180 tv.tv_usec = (suseconds_t)(ts.tv_nsec / 1000);
181 return (tv);
/haiku/src/system/kernel/fs/
H A Drootfs.cpp153 timespec tv; local
154 tv.tv_sec = time / 1000000;
155 tv.tv_nsec = (time % 1000000) * 1000;
156 return tv;
/haiku/src/system/kernel/device_manager/
H A Ddevfs.cpp189 timespec tv; local
190 tv.tv_sec = time / 1000000;
191 tv.tv_nsec = (time % 1000000) * 1000;
192 return tv;
/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/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/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/system/libroot/posix/sys/
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/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/libs/print/libprint/
H A DMarginView.cpp486 BTextView *tv = textControl->TextView(); local
489 tv->DisallowChar(i);
492 tv->AllowChar(i);
494 tv->AllowChar(B_BACKSPACE);
496 tv->AllowChar('.');
497 tv->SetMaxBytes(maxNum);
/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...]
H A Dfwohci.cpp1169 // microtime(&xfer->tv);
1170 xfer->tv = system_time();
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/ath_rate/sample/
H A Dsample.c1437 struct ath_rateioctl_rt *tv; local
1461 tv = malloc(sizeof(struct ath_rateioctl_rt), M_TEMP,
1463 if (tv == NULL) {
1470 tv->nentries = rt->rateCount;
1472 tv->ratecode[y] = rt->info[y].dot11Rate & IEEE80211_RATE_VAL;
1474 tv->ratecode[y] |= IEEE80211_RATE_MCS;
1485 copyout(tv, rs->buf + o, sizeof(struct ath_rateioctl_rt));
1502 free(tv, M_TEMP);
/haiku/src/apps/autoraise/
H A DAutoRaiseIcon.h88 ConfigMenu(TrayView *tv, bool useMag);
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...]
/haiku/src/system/boot/platform/atari_m68k/
H A Dvideo.cpp472 bool tv = false;
482 tv = true;
602 m & 0x0010 ? " vga" : " tv",
605 //m & 0x0080 ? " tv" : "",
684 bool tv = false;
694 tv = true;
817 m & 0x0010 ? " vga" : " tv",
820 //m & 0x0080 ? " tv" : "",
/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/tests/system/network/
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);

Completed in 259 milliseconds

12