Searched defs:tv (Results 1 - 17 of 17) sorted by relevance

/ast/src/lib/libast/tm/
H A Dtmxgettime.c31 #include <tv.h>
40 Tv_t tv; local
42 tvgettime(&tv);
43 return tmxsns(tv.tv_sec, tv.tv_nsec);
H A Dtmsleep.c32 #include <tv.h>
37 Tv_t tv; local
39 tv.tv_sec = sec;
40 tv.tv_nsec = nsec;
41 return tvsleep(&tv, NiL);
H A Dtmxsettime.c31 #include <tv.h>
40 Tv_t tv; local
42 tv.tv_sec = tmxsec(t);
43 tv.tv_nsec = tmxnsec(t);
44 return tvsettime(&tv);
H A Dtmxsleep.c31 #include <tv.h>
36 Tv_t tv; local
38 tv.tv_sec = tmxsec(t);
39 tv.tv_nsec = tmxnsec(t);
40 return tvsleep(&tv, NiL);
H A Dtvgettime.c24 #include <tv.h>
30 tvgettime(Tv_t* tv) argument
38 tv->tv_sec = s.tv_sec;
39 tv->tv_nsec = s.tv_nsec;
48 tv->tv_sec = v.tv_sec;
49 tv->tv_nsec = v.tv_usec * 1000;
56 if ((tv->tv_sec = time(NiL)) != s)
58 s = tv->tv_sec;
63 tv->tv_nsec = n;
H A Dtvsettime.c24 #include <tv.h>
31 tvsettime(const Tv_t* tv) argument
38 s.tv_sec = tv->tv_sec;
39 s.tv_nsec = tv->tv_nsec;
48 v.tv_sec = tv->tv_sec;
49 v.tv_usec = tv->tv_nsec / 1000;
58 s = tv->tv_sec + (tv->tv_nsec != 0);
H A Dtvsleep.c24 #include <tv.h>
49 * sleep for tv
55 tvsleep(register const Tv_t* tv, register Tv_t* rv) argument
64 stv.tv_sec = tv->tv_sec;
65 stv.tv_nsec = tv->tv_nsec;
79 stv.tv_sec = tv->tv_sec;
80 stv.tv_usec = tv->tv_nsec / 1000;
84 *rv = *tv;
96 unsigned int s = tv->tv_sec;
97 uint32_t n = tv
[all...]
/ast/src/cmd/tests/vmalloc/
H A Dtregion.c25 Vmalloc_t *vm, *tv; local
43 { if((tv = vmregion(addr[i])) != vm)
45 if((tv = vmregion(addr[i+1])) != Vmheap)
/ast/src/lib/libast/string/
H A Dfmttv.c24 #include <tv.h>
32 fmttv(const char* fmt, Tv_t* tv) argument
38 s = fmttime(fmt, (time_t)tv->tv_sec);
39 if (!tv->tv_nsec || tv->tv_nsec == TV_NSEC_IGNORE)
42 sfsprintf(t, n, "%s.%09lu", s, (unsigned long)tv->tv_nsec);
/ast/src/lib/libtksh/tcl/
H A DtclUnixTime.c19 #include <tv.h>
36 Tv_t tv; local
38 tvgettime(&tv);
39 return 1000000 * tv.tv_sec + tv.tv_nsec / 1000;
54 Tv_t tv; local
56 tvgettime(&tv);
57 tp->sec = tv.tv_sec;
58 tp->usec = tv.tv_nsec / 1000;
219 struct timeval tv;
216 struct timeval tv; local
259 struct timeval tv; local
[all...]
/ast/src/lib/libcs/
H A Dcspoll.c60 struct timeval tv; local
64 tv.tv_sec = ms / 1000;
65 tv.tv_usec = (ms % 1000) * 1000;
66 tp = &tv;
/ast/src/lib/libast/path/
H A Dpathtemp.c74 #include <tv.h>
115 Tv_t tv; local
182 tv.tv_nsec = 0;
184 tvgettime(&tv);
317 key = tmp.rng * tmp.key + tv.tv_nsec;
319 tvgettime(&tv);
320 tmp.key = tmp.rng * key + tv.tv_nsec;
/ast/src/cmd/pax/
H A Dformat.c569 Tv_t tv; local
582 tv.tv_sec = vp->number;
583 tv.tv_nsec = vp->fraction;
584 if (!tv.tv_sec && !tv.tv_nsec && index != OPT_mtime)
585 tvgetmtime(&tv, f->st);
589 tvsetatime(&tv, f->st);
592 tvsetmtime(&tv, f->st);
595 tvsetctime(&tv, f->st);
601 tvgettime(&tv);
[all...]
H A Dpax-tar.c339 Tv_t tv; local
387 tvgetatime(&tv, f->st);
390 tvgetmtime(&tv, f->st);
393 tvgetctime(&tv, f->st);
396 if (!tv.tv_nsec && op->index == OPT_mtime)
398 s = num + sfsprintf(num, sizeof(num), "%lu.%09lu", tv.tv_sec, tv.tv_nsec);
/ast/src/lib/libcmd/
H A Dtail.c105 #include <tv.h>
425 Tv_t tv; local
636 tv.tv_sec = 1;
637 tv.tv_nsec = 0;
642 else if (sh_checksig(context) || tvsleep(&tv, NiL))
689 if (sh_checksig(context) || tvsleep(&tv, NiL))
/ast/src/cmd/mailx/
H A Dlocal.c834 struct timeval tv[2]; local
855 tv[0].tv_sec = atime;
856 tv[1].tv_sec = mtime;
857 tv[0].tv_usec = tv[1].tv_usec = 0;
858 return utimes(file, tv);
/ast/src/cmd/warp/
H A Dwarp.c501 warp_gettimeofday(register Call_t* p, struct timeval* tv, void* tz) argument
506 if ((r = (*(Gettimeofday_f)p->call)(tv, tz)) != -1 && !p->warped)
510 else if (tv)
511 WARP_ABS(tv->tv_sec);
517 gettimeofday(struct timeval* tv, void* tz) argument
521 return warp_gettimeofday(&call, tv, tz);
527 _gettimeofday(struct timeval* tv, void* tz) argument
531 return warp_gettimeofday(&call, tv, tz);
535 __gettimeofday(struct timeval* tv, void* tz) argument
539 return warp_gettimeofday(&call, tv, t
543 _libc_gettimeofday(struct timeval* tv, void* tz) argument
551 __libc_gettimeofday(struct timeval* tv, void* tz) argument
621 warp_select(register Call_t* p, int n, void* rp, void* wp, void* ep, register const struct timeval* tv) argument
644 select(int n, void* rp, void* wp, void* ep, const struct timeval* tv) argument
654 _select(int n, void* rp, void* wp, void* ep, const struct timeval* tv) argument
662 __select(int n, void* rp, void* wp, void* ep, const struct timeval* tv) argument
670 _libc_select(int n, void* rp, void* wp, void* ep, const struct timeval* tv) argument
678 __libc_select(int n, void* rp, void* wp, void* ep, const struct timeval* tv) argument
752 warp_times(register Call_t* p, struct tms* tv) argument
768 times(struct tms* tv) argument
778 _times(struct tms* tv) argument
786 __times(struct tms* tv) argument
794 _libc_times(struct tms* tv) argument
802 __libc_times(struct tms* tv) argument
812 warp_utime(register Call_t* p, const char* path, const struct utimbuf* tv) argument
833 utime(const char* path, const struct utimbuf* tv) argument
843 _utime(const char* path, const struct utimbuf* tv) argument
851 __utime(const char* path, const struct utimbuf* tv) argument
859 _libc_utime(const char* path, const struct utimbuf* tv) argument
867 __libc_utime(const char* path, const struct utimbuf* tv) argument
877 warp_utimensat(int dirfd, register Call_t* p, const char* path, const struct timespec* tv, int flags) argument
901 utimensat(int dirfd, const char* path, const struct timespec* tv, int flags) argument
911 _utimensat(int dirfd, const char* path, const struct timespec* tv, int flags) argument
919 __utimensat(int dirfd, const char* path, const struct timespec* tv, int flags) argument
927 _libc_utimensat(int dirfd, const char* path, const struct timespec* tv, int flags) argument
935 __libc_utimensat(int dirfd, const char* path, const struct timespec* tv, int flags) argument
945 warp_utimes(register Call_t* p, const char* path, const struct timeval* tv) argument
969 utimes(const char* path, const struct timeval* tv) argument
979 _utimes(const char* path, const struct timeval* tv) argument
987 __utimes(const char* path, const struct timeval* tv) argument
995 _libc_utimes(const char* path, const struct timeval* tv) argument
1003 __libc_utimes(const char* path, const struct timeval* tv) argument
1013 warp_utimets(register Call_t* p, const char* path, const struct timespec* tv) argument
1037 utimets(const char* path, const struct timespec* tv) argument
1047 _utimets(const char* path, const struct timespec* tv) argument
1055 __utimets(const char* path, const struct timespec* tv) argument
1063 _libc_utimets(const char* path, const struct timespec* tv) argument
1071 __libc_utimets(const char* path, const struct timespec* tv) argument
1738 warp_clock_gettime(register Call_t* p, int clock, struct timespec* tv) argument
[all...]

Completed in 294 milliseconds