/third_party/pulseaudio/src/pulse/ |
H A D | timeval.h | 30 * Utility functions for handling timeval calculations */ 58 struct timeval; 61 struct timeval *pa_gettimeofday(struct timeval *tv); 63 /** Calculate the difference between the two specified timeval 65 pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) PA_GCC_PURE; 67 /** Compare the two timeval structs and return 0 when equal, negative when a < b, positive otherwise */ 68 int pa_timeval_cmp(const struct timeval *a, const struct timeval * [all...] |
H A D | timeval.c | 35 #include "timeval.h" 37 struct timeval *pa_gettimeofday(struct timeval *tv) { in pa_gettimeofday() 73 pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) { in pa_timeval_diff() 81 const struct timeval *c; in pa_timeval_diff() 99 int pa_timeval_cmp(const struct timeval *a, const struct timeval *b) { in pa_timeval_cmp() 118 pa_usec_t pa_timeval_age(const struct timeval *tv) { in pa_timeval_age() 119 struct timeval no in pa_timeval_age() [all...] |
H A D | glib-mainloop.c | 25 #include <pulse/timeval.h> 53 struct timeval timeval; member 278 const struct timeval *tv, in glib_time_new() 296 e->timeval = *tv; in glib_time_new() 302 if (pa_timeval_cmp(tv, &g->cached_next_time_event->timeval) < 0) in glib_time_new() 316 static void glib_time_restart(pa_time_event*e, const struct timeval *tv) { in glib_time_restart() 327 e->timeval = *tv; in glib_time_restart() 335 if (pa_timeval_cmp(tv, &e->mainloop->cached_next_time_event->timeval) < 0) in glib_time_restart() 446 if (!n || pa_timeval_cmp(&t->timeval, in find_next_time_event() [all...] |
H A D | ohos_glib-mainloop.c | 25 #include <pulse/timeval.h> 54 struct timeval timeval; member 279 const struct timeval *tv, in glib_time_new() 297 e->timeval = *tv; in glib_time_new() 303 if (pa_timeval_cmp(tv, &g->cached_next_time_event->timeval) < 0) in glib_time_new() 317 static void glib_time_restart(pa_time_event*e, const struct timeval *tv) { in glib_time_restart() 328 e->timeval = *tv; in glib_time_restart() 336 if (pa_timeval_cmp(tv, &e->mainloop->cached_next_time_event->timeval) < 0) in glib_time_restart() 447 if (!n || pa_timeval_cmp(&t->timeval, in find_next_time_event() [all...] |
/third_party/curl/tests/libtest/ |
H A D | testutil.c | 31 struct timeval tutil_tvnow(void) in tutil_tvnow() 38 struct timeval now; in tutil_tvnow() 47 struct timeval tutil_tvnow(void) in tutil_tvnow() 56 struct timeval now; in tutil_tvnow() 81 struct timeval tutil_tvnow(void) in tutil_tvnow() 88 struct timeval now; in tutil_tvnow() 95 struct timeval tutil_tvnow(void) in tutil_tvnow() 100 struct timeval now; in tutil_tvnow() 114 long tutil_tvdiff(struct timeval newer, struct timeval olde [all...] |
H A D | testutil.h | 28 struct timeval tutil_tvnow(void); 36 long tutil_tvdiff(struct timeval t1, struct timeval t2); 43 double tutil_tvdiff_secs(struct timeval t1, struct timeval t2);
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | core-rtclock.h | 26 struct timeval; 28 /* Something like pulse/timeval.h but based on CLOCK_MONOTONIC */ 30 struct timeval *pa_rtclock_get(struct timeval *ts); 32 pa_usec_t pa_rtclock_age(const struct timeval *tv); 39 /* bit to set in tv.tv_usec to mark that the timeval is in monotonic time */ 42 struct timeval* pa_rtclock_from_wallclock(struct timeval *tv); 51 struct timeval* pa_timeval_rtstore(struct timeval *t [all...] |
H A D | core-rtclock.c | 49 #include <pulse/timeval.h> 59 pa_usec_t pa_rtclock_age(const struct timeval *tv) { in pa_rtclock_age() 60 struct timeval now; in pa_rtclock_age() 66 struct timeval *pa_rtclock_get(struct timeval *tv) { in pa_rtclock_get() 186 struct timeval* pa_rtclock_from_wallclock(struct timeval *tv) { in pa_rtclock_from_wallclock() 187 struct timeval wc_now, rt_now; in pa_rtclock_from_wallclock() 233 static struct timeval* wallclock_from_rtclock(struct timeval *t [all...] |
/third_party/curl/src/ |
H A D | tool_util.c | 36 /* In case of bug fix this function has a counterpart in timeval.c */ 37 struct timeval tvnow(void) in tvnow() 39 struct timeval now; in tvnow() 66 struct timeval tvnow(void) in tvnow() 75 struct timeval now; in tvnow() 100 struct timeval tvnow(void) in tvnow() 107 struct timeval now; in tvnow() 114 struct timeval tvnow(void) in tvnow() 119 struct timeval now; in tvnow() 133 long tvdiff(struct timeval newe [all...] |
/third_party/node/deps/cares/src/lib/ |
H A D | ares__timeval.c | 33 struct timeval ares__tvnow(void) in ares__tvnow() 40 struct timeval now; in ares__tvnow() 49 struct timeval ares__tvnow(void) in ares__tvnow() 58 struct timeval now; in ares__tvnow() 83 struct timeval ares__tvnow(void) in ares__tvnow() 90 struct timeval now; in ares__tvnow() 97 struct timeval ares__tvnow(void) in ares__tvnow() 102 struct timeval now; in ares__tvnow()
|
H A D | ares_timeout.c | 37 void ares__timeval_remaining(struct timeval *remaining, in ares__timeval_remaining() 38 const struct timeval *now, in ares__timeval_remaining() 39 const struct timeval *tout) in ares__timeval_remaining() 58 struct timeval *ares_timeout(ares_channel_t *channel, struct timeval *maxtv, in ares_timeout() 59 struct timeval *tvbuf) in ares_timeout() 63 struct timeval now; in ares_timeout()
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | time.h | 11 int gettimeofday (struct timeval *__restrict, void *__restrict); 18 struct timeval it_interval; 19 struct timeval it_value; 24 int utimes (const char *, const struct timeval [2]); 31 int futimes(int, const struct timeval [2]); 32 int futimesat(int, const char *, const struct timeval [2]); 33 int lutimes(const char *, const struct timeval [2]); 34 int settimeofday(const struct timeval *, const struct timezone *); 35 int adjtime (const struct timeval *, struct timeval *); [all...] |
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | time.h | 11 int gettimeofday (struct timeval *__restrict, void *__restrict); 18 struct timeval it_interval; 19 struct timeval it_value; 24 int utimes (const char *, const struct timeval [2]); 31 int futimes(int, const struct timeval [2]); 32 int futimesat(int, const char *, const struct timeval [2]); 33 int lutimes(const char *, const struct timeval [2]); 34 int settimeofday(const struct timeval *, const struct timezone *); 35 int adjtime (const struct timeval *, struct timeval *); [all...] |
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | time.h | 33 int gettimeofday (struct timeval *__restrict, struct timezone *__restrict); 40 struct timeval it_interval; 41 struct timeval it_value; 55 int utimes (const char *, const struct timeval [2]); 58 int futimes(int, const struct timeval [2]); 59 int futimesat(int, const char *, const struct timeval [2]); 60 int lutimes(const char *, const struct timeval [2]); 61 int settimeofday(const struct timeval *, const struct timezone *); 62 int adjtime (const struct timeval *, struct timeval *); [all...] |
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | time.h | 11 int gettimeofday (struct timeval *__restrict, void *__restrict); 18 struct timeval it_interval; 19 struct timeval it_value; 24 int utimes (const char *, const struct timeval [2]); 31 int futimes(int, const struct timeval [2]); 32 int futimesat(int, const char *, const struct timeval [2]); 33 int lutimes(const char *, const struct timeval [2]); 34 int settimeofday(const struct timeval *, const struct timezone *); 35 int adjtime (const struct timeval *, struct timeval *); [all...] |
/third_party/musl/include/sys/ |
H A D | time.h | 11 int gettimeofday (struct timeval *__restrict, void *__restrict); 18 struct timeval it_interval; 19 struct timeval it_value; 24 int utimes (const char *, const struct timeval [2]); 31 int futimes(int, const struct timeval [2]); 32 int futimesat(int, const char *, const struct timeval [2]); 33 int lutimes(const char *, const struct timeval [2]); 34 int settimeofday(const struct timeval *, const struct timezone *); 35 int adjtime (const struct timeval *, struct timeval *); [all...] |
/third_party/toybox/toys/other/ |
H A D | hwclock.c | 62 struct timeval timeval; in hwclock_main() local 104 if (gettimeofday(&timeval, 0)) perror_exit("gettimeofday failed"); in hwclock_main() 105 if (!(TT.utc ? gmtime_r : localtime_r)(&timeval.tv_sec, &tm)) in hwclock_main() 117 timeval.tv_sec = time; in hwclock_main() 118 timeval.tv_usec = 0; // todo: fixit in hwclock_main() 124 if (!TT.utc) timeval.tv_sec += tzone.tz_minuteswest * 60; in hwclock_main() 134 if (settimeofday(&timeval, &tzone)) perror_exit("settimeofday failed"); in hwclock_main()
|
/third_party/musl/porting/linux/user/src/time/ |
H A D | gettimeofday.c | 28 static int gtd_init(struct timeval *tv, void *tz) in gtd_init() 32 int (*f)(struct timeval *, void *) = in gtd_init() 42 int gettimeofday(struct timeval *restrict tv, void *restrict tz) in gettimeofday() 46 int (*f)(struct timeval *, void *) = in gettimeofday() 47 (int (*)(struct timeval *, void *))vdso_gtd; in gettimeofday()
|
/third_party/musl/src/time/ |
H A D | gettimeofday.c | 15 static int gtd_init(struct timeval *tv, void *tz) in gtd_init() 19 int (*f)(struct timeval *, void *) = in gtd_init() 30 int gettimeofday(struct timeval *restrict tv, void *restrict tz) in gettimeofday() 34 int (*f)(struct timeval *, void *) = in gettimeofday() 35 (int (*)(struct timeval *, void *))vdso_gtd; in gettimeofday()
|
/third_party/ltp/testcases/kernel/syscalls/utimes/ |
H A D | utimes01.c | 39 static struct timeval a_tv[2] = { {0, 0}, {1000, 0} }; 40 static struct timeval m_tv[2] = { {1000, 0}, {0, 0} }; 41 static struct timeval tv[2] = { {1000, 0}, {2000, 0} }; 45 struct timeval *times; 69 struct timeval tmp_tv[2]; in utimes_verify()
|
/third_party/musl/libc-test/src/functionalext/supplement/select/ |
H A D | select.c | 27 extern int __select_time64(int, fd_set *__restrict, fd_set *__restrict, fd_set *__restrict, struct timeval *__restrict); 39 struct timeval timeout; in select_0100() 60 struct timeval timeout; in select_0200() 80 struct timeval timeout; in select_0300() 100 struct timeval timeout; in select_time64_0100()
|
/third_party/musl/src/misc/ |
H A D | getrusage.c | 13 ru->ru_utime = (struct timeval) in getrusage() 15 ru->ru_stime = (struct timeval) in getrusage() 29 ru->ru_utime = (struct timeval) in getrusage() 31 ru->ru_stime = (struct timeval) in getrusage()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | settimeofday.c | 22 extern int __settimeofday_time64(const struct timeval *, const struct timezone *); 44 struct timeval tv; in settimeofday_0200() 61 struct timeval tv; in settimeofday_0300() 78 struct timeval tv; in settimeofday_time64_0200()
|
/third_party/musl/src/linux/ |
H A D | wait4.c | 16 ru->ru_utime = (struct timeval) in wait4() 18 ru->ru_stime = (struct timeval) in wait4() 33 ru->ru_utime = (struct timeval) in wait4() 35 ru->ru_stime = (struct timeval) in wait4()
|
/third_party/musl/libc-test/src/functionalext/supplement/legacy/ |
H A D | lutimes.c | 24 extern int __lutimes_time64(const char *, const struct timeval [2]); 35 static struct timeval tv[TEST_SIZE] = {{0L, 0L}, {0L, 0L}}; in lutimes_0100() 63 static struct timeval tv[TEST_SIZE] = {{0L, 0L}, {0L, 0L}}; in lutimes_0200() 77 static struct timeval tv[TEST_SIZE] = {{0L, 0L}, {0L, 0L}}; in lutimes_time64_0100()
|