Home
last modified time | relevance | path

Searched refs:timespec (Results 1 - 25 of 1062) sorted by relevance

12345678910>>...43

/third_party/mesa3d/src/util/
H A Dtimespec.h27 * \file timespec.h
29 * Helpers to deal with timespec structures.
52 timespec_add(struct timespec *r, in timespec_add()
53 const struct timespec *a, const struct timespec *b) in timespec_add()
71 timespec_sub(struct timespec *r, in timespec_sub()
72 const struct timespec *a, const struct timespec *b) in timespec_sub()
87 * Add a nanosecond value to a timespec
90 * \param a[in] base operand as timespec
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/
H A Dsys_clock_test.cpp20 timespec times; in HWTEST_F()
35 timespec times; in HWTEST_F()
50 timespec times; in HWTEST_F()
63 timespec times; in HWTEST_F()
74 timespec times; in HWTEST_F()
88 timespec times; in HWTEST_F()
100 timespec times; in HWTEST_F()
114 timespec times; in HWTEST_F()
129 timespec times; in HWTEST_F()
144 timespec time in HWTEST_F()
[all...]
/third_party/mesa3d/src/util/tests/
H A Dtimespec_test.cpp29 #include "util/timespec.h"
35 struct timespec a, b, r; in TEST()
48 struct timespec a, b, r; in TEST()
61 struct timespec a; in TEST()
70 struct timespec a; in TEST()
79 struct timespec a; in TEST()
88 struct timespec a; in TEST()
134 struct timespec a, r; in TEST()
184 struct timespec a, r; in TEST()
195 struct timespec in TEST()
[all...]
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dtime.h67 struct timespec it_interval;
68 struct timespec it_value;
89 int nanosleep(const struct timespec *, struct timespec *);
90 int clock_getres(clockid_t, struct timespec *);
91 int clock_gettime(clockid_t, struct timespec *);
92 int clock_settime(clockid_t, const struct timespec *);
93 int clock_nanosleep(clockid_t, int, const struct timespec *, struct timespec *);
/third_party/musl/libc-test/src/functionalext/supplement/time/
H A Dclock_nanosleep.c22 extern int __clock_nanosleep_time64(clockid_t, int, const struct timespec *, struct timespec *);
31 struct timespec ts; in clock_nanosleep_0100()
46 struct timespec ts; in clock_nanosleep_0200()
61 struct timespec ts; in clock_nanosleep_0300()
76 struct timespec ts; in clock_nanosleep_0400()
92 struct timespec ts; in clock_nanosleep_0500()
108 struct timespec ts; in clock_nanosleep_0600()
123 struct timespec ts; in clock_nanosleep_time64_0100()
H A Dclock_getres.c19 extern int __clock_getres_time64 (clockid_t, struct timespec *);
28 struct timespec ts; in clock_getres_0100()
40 struct timespec ts; in clock_getres_0200()
52 struct timespec ts; in clock_getres_0300()
64 struct timespec ts; in clock_getres_0400()
76 struct timespec ts; in clock_getres_0500()
88 struct timespec ts; in clock_getres_time64_0100()
/third_party/ltp/include/
H A Dtst_timer.h7 Timer - struct timespec conversion runtimes and easy to use functions to
149 struct timespec libc_ts;
586 * Checks that timespec is valid, i.e. that the timestamp is not zero and that
589 * 0: On success, i.e. timespec updated correctly.
590 * -1: Error, timespec not updated.
607 * Converts timespec to tst_ts.
609 static inline struct tst_ts tst_ts_from_timespec(struct timespec ts) in tst_ts_from_timespec()
621 * Converst tst_ts into timespec.
623 static inline struct timespec tst_ts_to_timespec(struct tst_ts t) in tst_ts_to_timespec()
646 * Converts timespec t
[all...]
/third_party/musl/porting/uniproton/kernel/include/
H A Dtime.h62 int timespec_get(struct timespec *, int);
82 struct timespec it_interval;
83 struct timespec it_value;
101 int nanosleep (const struct timespec *, struct timespec *);
102 int clock_getres (clockid_t, struct timespec *);
103 int clock_gettime (clockid_t, struct timespec *);
104 int clock_settime (clockid_t, const struct timespec *);
105 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
[all...]
/third_party/musl/porting/liteos_m/user/include/
H A Dtime.h61 int timespec_get(struct timespec *, int);
81 struct timespec it_interval;
82 struct timespec it_value;
100 int nanosleep (const struct timespec *, struct timespec *);
101 int clock_getres (clockid_t, struct timespec *);
102 int clock_gettime (clockid_t, struct timespec *);
103 int clock_settime (clockid_t, const struct timespec *);
104 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
[all...]
H A Dusr_lib_ops.h73 int (*pthread_mutex_timedlock)(pthread_mutex_t *mutex, const struct timespec *absTimeout);
84 int (*pthread_cond_timedwait)(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *ts);
90 int (*sem_timedwait)(sem_t *sem, const struct timespec *timeout);
92 int (*nanosleep)(const struct timespec *rqtp, struct timespec *rmtp);
98 int (*clock_settime)(clockid_t clockID, const struct timespec *tp);
99 int (*clock_gettime)(clockid_t clockID, struct timespec *tp);
100 int (*clock_getres)(clockid_t clockID, struct timespec *tp);
101 int (*clock_nanosleep)(clockid_t clk, int flags, const struct timespec *req, struct timespec *re
[all...]
/third_party/musl/porting/liteos_m/kernel/include/
H A Dtime.h62 int timespec_get(struct timespec *, int);
82 struct timespec it_interval;
83 struct timespec it_value;
101 int nanosleep (const struct timespec *, struct timespec *);
102 int clock_getres (clockid_t, struct timespec *);
103 int clock_gettime (clockid_t, struct timespec *);
104 int clock_settime (clockid_t, const struct timespec *);
105 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
[all...]
/third_party/musl/libc-test/src/api/
H A Dtime.c17 struct timespec x; in f()
23 F(struct timespec,it_interval) in f()
24 F(struct timespec,it_value) in f()
58 {int(*p)(clockid_t,struct timespec*) = clock_getres;} in f()
59 {int(*p)(clockid_t,struct timespec*) = clock_gettime;} in f()
60 {int(*p)(clockid_t,int,const struct timespec*,struct timespec*) = clock_nanosleep;} in f()
61 {int(*p)(clockid_t,const struct timespec*) = clock_settime;} in f()
65 {int(*p)(const struct timespec*,struct timespec*) in f()
[all...]
/third_party/musl/libc-test/src/functional/
H A Dutime64.c15 extern int __futimens_time64(int, const struct timespec [2]);
24 TEST(utimensat(AT_FDCWD, "/dev/null/invalid", ((struct timespec[2]){{.tv_nsec=UTIME_OMIT},{.tv_nsec=UTIME_OMIT}}), 0)==0 || errno==ENOTDIR, in main()
26 TEST(__futimens_time64(-1, ((struct timespec[2]){{.tv_nsec=UTIME_OMIT},{.tv_nsec=UTIME_OMIT}}))==0 || errno==EBADF, in main()
32 TEST(__futimens_time64(fd, (struct timespec[2]){0}) == 0, "\n"); in main()
39 TEST(__futimens_time64(fd, ((struct timespec[2]){{.tv_sec=1,.tv_nsec=UTIME_OMIT},{.tv_sec=1,.tv_nsec=UTIME_OMIT}})) == 0, "\n"); in main()
48 TEST(__futimens_time64(fd, ((struct timespec[2]){{.tv_nsec=UTIME_NOW},{.tv_nsec=UTIME_OMIT}})) == 0, "\n"); in main()
54 TEST(__futimens_time64(fd, (struct timespec[2]){0}) == 0, "\n"); in main()
55 TEST(__futimens_time64(fd, ((struct timespec[2]){{.tv_nsec=UTIME_OMIT},{.tv_nsec=UTIME_NOW}})) == 0, "\n"); in main()
60 TEST(__futimens_time64(fd, ((struct timespec[2]){{.tv_nsec=UTIME_NOW},{.tv_nsec=UTIME_OMIT}})) == 0, "\n"); in main()
66 if (TEST(__futimens_time64(fd, ((struct timespec[ in main()
[all...]
H A Dutime.c21 TEST(utimensat(AT_FDCWD, "/dev/null/invalid", ((struct timespec[2]){{.tv_nsec=UTIME_OMIT},{.tv_nsec=UTIME_OMIT}}), 0)==0 || errno==ENOTDIR, in main()
23 TEST(futimens(-1, ((struct timespec[2]){{.tv_nsec=UTIME_OMIT},{.tv_nsec=UTIME_OMIT}}))==0 || errno==EBADF, in main()
29 TEST(futimens(fd, (struct timespec[2]){0}) == 0, "\n"); in main()
36 TEST(futimens(fd, ((struct timespec[2]){{.tv_sec=1,.tv_nsec=UTIME_OMIT},{.tv_sec=1,.tv_nsec=UTIME_OMIT}})) == 0, "\n"); in main()
45 TEST(futimens(fd, ((struct timespec[2]){{.tv_nsec=UTIME_NOW},{.tv_nsec=UTIME_OMIT}})) == 0, "\n"); in main()
51 TEST(futimens(fd, (struct timespec[2]){0}) == 0, "\n"); in main()
52 TEST(futimens(fd, ((struct timespec[2]){{.tv_nsec=UTIME_OMIT},{.tv_nsec=UTIME_NOW}})) == 0, "\n"); in main()
57 TEST(futimens(fd, ((struct timespec[2]){{.tv_nsec=UTIME_NOW},{.tv_nsec=UTIME_OMIT}})) == 0, "\n"); in main()
63 if (TEST(futimens(fd, ((struct timespec[2]){{.tv_sec=1LL<<32},{.tv_sec=1LL<<32}})) == 0, "%s\n", strerror(errno))) { in main()
/third_party/musl/libc-test/src/functionalext/thread/
H A Dpthread_mutex_ext.c24 struct timespec ts = {0}; in PthreadClocklockOutRealTime()
25 struct timespec tsNow = {0}; in PthreadClocklockOutRealTime()
61 struct timespec ts = {0}; in PthreadClocklockNoOutRealTime()
92 struct timespec ts = {0}; in PthreadClocklockOutMonoTime()
93 struct timespec tsNow = {0}; in PthreadClocklockOutMonoTime()
129 struct timespec ts = {0}; in PthreadClocklockNoOutMonoTime()
160 struct timespec ts = {0}; in PthreadClocklockOutRealTime2()
161 struct timespec tsNow = {0}; in PthreadClocklockOutRealTime2()
200 struct timespec ts = {0}; in PthreadClocklockNoOutMonoTime2()
215 struct timespec tsNo in pthread_mutex_clocklock_0060()
[all...]
H A Dpthread_rwlock_wrlock.c38 struct timespec ts = {0}; in RwlockClockRealTimeOut2()
39 struct timespec tsNow = {0}; in RwlockClockRealTimeOut2()
66 struct timespec ts = {0}; in RwlockClockRealTimeWait2()
86 struct timespec ts = {0}; in RwlockClockMonotonicTimeOut2()
87 struct timespec tsNow = {0}; in RwlockClockMonotonicTimeOut2()
116 struct timespec ts = {0}; in RwlockClockMonotonicTimeWait2()
135 struct timespec ts = {0}; in RwlockMonotonicTime2()
136 struct timespec tsNow = {0}; in RwlockMonotonicTime2()
165 struct timespec ts = {0}; in RwlockMonotonicTime4()
182 struct timespec t in pthread_rwlock_timedwrlock_0010()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dthrd_sleep.c21 extern int __thrd_sleep_time64(const struct timespec *, struct timespec *);
34 struct timespec const *tl = (struct timespec const *)arg; in threadfunc()
51 struct timespec ts = {.tv_sec = 1}; in thrd_sleep_0100()
76 int result = thrd_sleep(&(struct timespec){.tv_sec = -1}, NULL); in thrd_sleep_0200()
101 int result = __thrd_sleep_time64(&(struct timespec){.tv_sec = -1}, NULL); in thrd_sleep_time64_0200()
/third_party/ltp/testcases/kernel/syscalls/futex/
H A Dfutex_waitv01.c28 static void init_timeout(struct timespec *to) in init_timeout()
43 struct timespec to; in test_invalid_flags()
57 struct timespec to; in test_unaligned_address()
70 struct timespec to; in test_null_address()
83 struct timespec to; in test_null_waiters()
93 struct timespec to; in test_invalid_clockid()
104 struct timespec to; in test_invalid_nr_futexes()
118 struct timespec to; in test_mismatch_between_uaddr_and_val()
132 struct timespec to; in test_timeout()
/third_party/ltp/testcases/realtime/include/
H A Dlibrttest.h284 void ts_minus(struct timespec *ts_end, struct timespec *ts_start, struct timespec *ts_delta);
289 void ts_plus(struct timespec *ts_a, struct timespec *ts_b, struct timespec *ts_sum);
294 void ts_normalize(struct timespec *ts);
296 /* convert nanoseconds to a timespec
299 void nsec_to_ts(nsec_t ns, struct timespec *ts);
301 /* convert a timespec t
[all...]
/third_party/rust/crates/rustix/src/backend/libc/time/
H A Dsyscalls.rs49 let mut timespec = MaybeUninit::<LibcTimespec>::uninit(); variables
59 ret(libc_clock_getres(id as c::clockid_t, timespec.as_mut_ptr())).unwrap();
60 timespec.assume_init().into()
72 let _ = c::clock_getres(id as c::clockid_t, timespec.as_mut_ptr());
73 timespec.assume_init()
83 let mut old_timespec = MaybeUninit::<c::timespec>::uninit(); in clock_getres_old()
100 let mut timespec = MaybeUninit::<LibcTimespec>::uninit(); variables
110 timespec.as_mut_ptr(),
113 timespec.assume_init().into()
128 ret(c::clock_gettime(id as c::clockid_t, timespec
155 let mut timespec = MaybeUninit::<LibcTimespec>::uninit(); global() variables
[all...]
/third_party/musl/porting/liteos_a/kernel/include/
H A Dtime.h66 int timespec_get(struct timespec *, int);
86 struct timespec it_interval;
87 struct timespec it_value;
116 int nanosleep (const struct timespec *, struct timespec *);
117 int clock_getres (clockid_t, struct timespec *);
118 int clock_gettime (clockid_t, struct timespec *);
119 int clock_settime (clockid_t, const struct timespec *);
120 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
[all...]
/third_party/musl/include/
H A Dtime.h63 int timespec_get(struct timespec *, int);
84 struct timespec it_interval;
85 struct timespec it_value;
103 int nanosleep (const struct timespec *, struct timespec *);
104 int clock_getres (clockid_t, struct timespec *);
105 int clock_gettime (clockid_t, struct timespec *);
106 int clock_settime (clockid_t, const struct timespec *);
107 int clock_nanosleep (clockid_t, int, const struct timespec *, struct timespec *);
[all...]
/third_party/musl/porting/linux/user/src/time/
H A Dclock_getres.c26 static int cgr_init(clockid_t clk, struct timespec *ts) in cgr_init()
30 int (*f)(clockid_t, struct timespec *) = in cgr_init()
31 (int (*)(clockid_t, struct timespec *))p; in cgr_init()
40 int clock_getres(clockid_t clk, struct timespec *ts) in clock_getres()
44 int (*f)(clockid_t, struct timespec *) = in clock_getres()
45 (int (*)(clockid_t, struct timespec *))vdso_cgr; in clock_getres()
66 * 32-bit arch and we can get result directly into timespec. */ in clock_getres()
H A Dclock_gettime.c13 static int cgt_time32_wrap(clockid_t clk, struct timespec *ts) in cgt_time32_wrap()
34 static int cgt_init(clockid_t clk, struct timespec *ts) in cgt_init()
47 int (*f)(clockid_t, struct timespec *) = in cgt_init()
48 (int (*)(clockid_t, struct timespec *))p; in cgt_init()
57 int __clock_gettime(clockid_t clk, struct timespec *ts) in __clock_gettime()
62 int (*f)(clockid_t, struct timespec *) = in __clock_gettime()
63 (int (*)(clockid_t, struct timespec *))vdso_func; in __clock_gettime()
/third_party/ltp/testcases/kernel/syscalls/statx/
H A Dstatx06.c40 struct timespec *timespec) in timestamp_to_timespec()
42 timespec->tv_sec = timestamp->tv_sec; in timestamp_to_timespec()
43 timespec->tv_nsec = timestamp->tv_nsec; in timestamp_to_timespec()
48 struct timespec res; in clock_wait_tick()
102 struct timespec before_time; in test_statx()
103 struct timespec after_time; in test_statx()
104 struct timespec statx_time = {0, 0}; in test_statx()
39 timestamp_to_timespec(const struct statx_timestamp *timestamp, struct timespec *timespec) timestamp_to_timespec() argument

Completed in 10 milliseconds

12345678910>>...43