/external/strace/tests/ |
D | xutimes.c | 48 print_tv(const TEST_STRUCT *const tv) in print_tv() argument 51 (long long) tv->tv_sec, in print_tv() 52 zero_extend_signed_to_ull(tv->tv_usec)); in print_tv() 53 print_time_t_usec(tv->tv_sec, in print_tv() 54 zero_extend_signed_to_ull(tv->tv_usec), 1); in print_tv() 75 TEST_STRUCT *const tv = tail_alloc(sizeof(*tv) * 2); in main() local 99 k_utimes(kfname, (uintptr_t) (tv + 1)); in main() 101 qname, tv + 1, errstr); in main() 103 k_utimes(kfname, (uintptr_t) (tv + 2)); in main() 105 qname, tv + 2, errstr); in main() [all …]
|
D | futimesat.c | 41 print_tv(const struct timeval *tv) in print_tv() argument 44 (long long) tv->tv_sec, in print_tv() 45 zero_extend_signed_to_ull(tv->tv_usec)); in print_tv() 46 print_time_t_usec(tv->tv_sec, in print_tv() 47 zero_extend_signed_to_ull(tv->tv_usec), 1); in print_tv() 74 struct timeval *const tv = tail_alloc(sizeof(*tv) * 2); in main() local 110 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 1)); in main() 112 qname, tv + 1, errstr); in main() 114 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 2)); in main() 116 qname, tv + 2, errstr); in main() [all …]
|
D | xettimeofday.c | 40 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); in main() 43 if (syscall(__NR_gettimeofday, tv, NULL)) in main() 46 (long long) tv->tv_sec, in main() 47 zero_extend_signed_to_ull(tv->tv_usec)); in main() 49 if (syscall(__NR_gettimeofday, tv, tz)) in main() 53 (long long) tv->tv_sec, in main() 54 zero_extend_signed_to_ull(tv->tv_usec), in main() 57 tv->tv_sec = -1; in main() 58 tv->tv_usec = 1000000; in main() 59 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() [all …]
|
D | xselect.c | 43 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); in main() 70 tv->tv_sec = 0xdeadbeefU; in main() 71 tv->tv_usec = 0xfacefeedU; in main() 72 memcpy(&tv_in, tv, sizeof(tv_in)); in main() 73 rc = syscall(TEST_SYSCALL_NR, fds[1] + 1, set, set, set, tv); in main() 78 fds[0], fds[1], fds[0], fds[1], (long long) tv->tv_sec, in main() 79 zero_extend_signed_to_ull(tv->tv_usec), sprintrc(rc)); in main() 87 rc, (long long) tv->tv_sec, in main() 88 zero_extend_signed_to_ull(tv->tv_usec)); in main() 93 tv->tv_sec = (time_t) 0xcafef00ddeadbeefLL; in main() [all …]
|
/external/strace/tests-mx32/ |
D | xutimes.c | 48 print_tv(const TEST_STRUCT *const tv) in print_tv() argument 51 (long long) tv->tv_sec, in print_tv() 52 zero_extend_signed_to_ull(tv->tv_usec)); in print_tv() 53 print_time_t_usec(tv->tv_sec, in print_tv() 54 zero_extend_signed_to_ull(tv->tv_usec), 1); in print_tv() 75 TEST_STRUCT *const tv = tail_alloc(sizeof(*tv) * 2); in main() local 99 k_utimes(kfname, (uintptr_t) (tv + 1)); in main() 101 qname, tv + 1, errstr); in main() 103 k_utimes(kfname, (uintptr_t) (tv + 2)); in main() 105 qname, tv + 2, errstr); in main() [all …]
|
D | futimesat.c | 41 print_tv(const struct timeval *tv) in print_tv() argument 44 (long long) tv->tv_sec, in print_tv() 45 zero_extend_signed_to_ull(tv->tv_usec)); in print_tv() 46 print_time_t_usec(tv->tv_sec, in print_tv() 47 zero_extend_signed_to_ull(tv->tv_usec), 1); in print_tv() 74 struct timeval *const tv = tail_alloc(sizeof(*tv) * 2); in main() local 110 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 1)); in main() 112 qname, tv + 1, errstr); in main() 114 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 2)); in main() 116 qname, tv + 2, errstr); in main() [all …]
|
D | xettimeofday.c | 40 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); in main() 43 if (syscall(__NR_gettimeofday, tv, NULL)) in main() 46 (long long) tv->tv_sec, in main() 47 zero_extend_signed_to_ull(tv->tv_usec)); in main() 49 if (syscall(__NR_gettimeofday, tv, tz)) in main() 53 (long long) tv->tv_sec, in main() 54 zero_extend_signed_to_ull(tv->tv_usec), in main() 57 tv->tv_sec = -1; in main() 58 tv->tv_usec = 1000000; in main() 59 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() [all …]
|
D | xselect.c | 43 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); in main() 70 tv->tv_sec = 0xdeadbeefU; in main() 71 tv->tv_usec = 0xfacefeedU; in main() 72 memcpy(&tv_in, tv, sizeof(tv_in)); in main() 73 rc = syscall(TEST_SYSCALL_NR, fds[1] + 1, set, set, set, tv); in main() 78 fds[0], fds[1], fds[0], fds[1], (long long) tv->tv_sec, in main() 79 zero_extend_signed_to_ull(tv->tv_usec), sprintrc(rc)); in main() 87 rc, (long long) tv->tv_sec, in main() 88 zero_extend_signed_to_ull(tv->tv_usec)); in main() 93 tv->tv_sec = (time_t) 0xcafef00ddeadbeefLL; in main() [all …]
|
/external/strace/tests-m32/ |
D | xutimes.c | 48 print_tv(const TEST_STRUCT *const tv) in print_tv() argument 51 (long long) tv->tv_sec, in print_tv() 52 zero_extend_signed_to_ull(tv->tv_usec)); in print_tv() 53 print_time_t_usec(tv->tv_sec, in print_tv() 54 zero_extend_signed_to_ull(tv->tv_usec), 1); in print_tv() 75 TEST_STRUCT *const tv = tail_alloc(sizeof(*tv) * 2); in main() local 99 k_utimes(kfname, (uintptr_t) (tv + 1)); in main() 101 qname, tv + 1, errstr); in main() 103 k_utimes(kfname, (uintptr_t) (tv + 2)); in main() 105 qname, tv + 2, errstr); in main() [all …]
|
D | futimesat.c | 41 print_tv(const struct timeval *tv) in print_tv() argument 44 (long long) tv->tv_sec, in print_tv() 45 zero_extend_signed_to_ull(tv->tv_usec)); in print_tv() 46 print_time_t_usec(tv->tv_sec, in print_tv() 47 zero_extend_signed_to_ull(tv->tv_usec), 1); in print_tv() 74 struct timeval *const tv = tail_alloc(sizeof(*tv) * 2); in main() local 110 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 1)); in main() 112 qname, tv + 1, errstr); in main() 114 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 2)); in main() 116 qname, tv + 2, errstr); in main() [all …]
|
D | xettimeofday.c | 40 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); in main() 43 if (syscall(__NR_gettimeofday, tv, NULL)) in main() 46 (long long) tv->tv_sec, in main() 47 zero_extend_signed_to_ull(tv->tv_usec)); in main() 49 if (syscall(__NR_gettimeofday, tv, tz)) in main() 53 (long long) tv->tv_sec, in main() 54 zero_extend_signed_to_ull(tv->tv_usec), in main() 57 tv->tv_sec = -1; in main() 58 tv->tv_usec = 1000000; in main() 59 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() [all …]
|
D | xselect.c | 43 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); in main() 70 tv->tv_sec = 0xdeadbeefU; in main() 71 tv->tv_usec = 0xfacefeedU; in main() 72 memcpy(&tv_in, tv, sizeof(tv_in)); in main() 73 rc = syscall(TEST_SYSCALL_NR, fds[1] + 1, set, set, set, tv); in main() 78 fds[0], fds[1], fds[0], fds[1], (long long) tv->tv_sec, in main() 79 zero_extend_signed_to_ull(tv->tv_usec), sprintrc(rc)); in main() 87 rc, (long long) tv->tv_sec, in main() 88 zero_extend_signed_to_ull(tv->tv_usec)); in main() 93 tv->tv_sec = (time_t) 0xcafef00ddeadbeefLL; in main() [all …]
|
/external/swiftshader/third_party/LLVM/test/CodeGen/CellSPU/useful-harnesses/ |
D | vecoperations.c | 14 } tv; in print_v16i8() local 15 tv.vec = v; in print_v16i8() 19 str, tv.elts[0], tv.elts[1], tv.elts[2], tv.elts[3], tv.elts[4], tv.elts[5], in print_v16i8() 20 tv.elts[6], tv.elts[7], tv.elts[8], tv.elts[9], tv.elts[10], tv.elts[11], in print_v16i8() 21 tv.elts[12], tv.elts[13], tv.elts[14], tv.elts[15]); in print_v16i8() 28 } tv; in print_v16i8_hex() local 29 tv.vec = v; in print_v16i8_hex() 33 str, tv.elts[0], tv.elts[1], tv.elts[2], tv.elts[3], tv.elts[4], tv.elts[5], in print_v16i8_hex() 34 tv.elts[6], tv.elts[7], tv.elts[8], tv.elts[9], tv.elts[10], tv.elts[11], in print_v16i8_hex() 35 tv.elts[12], tv.elts[13], tv.elts[14], tv.elts[15]); in print_v16i8_hex() [all …]
|
/external/python/cpython2/Lib/lib-tk/test/test_ttk/ |
D | test_widgets.py | 1120 self.tv = self.create(padding=0) 1168 self.tv.pack() 1169 self.assertEqual(self.tv.bbox(''), '') 1170 self.tv.wait_visibility() 1171 self.tv.update() 1173 item_id = self.tv.insert('', 'end') 1174 children = self.tv.get_children() 1177 bbox = self.tv.bbox(children[0]) 1181 self.tv['columns'] = ['test'] 1182 self.tv.column('test', width=50) [all …]
|
/external/fio/ |
D | time.c | 9 void timeval_add_msec(struct timeval *tv, unsigned int msec) in timeval_add_msec() argument 13 tv->tv_usec += adj_usec; in timeval_add_msec() 17 tv->tv_usec -= adj_sec * 1000000; in timeval_add_msec() 18 tv->tv_sec += adj_sec; in timeval_add_msec() 20 if (tv->tv_usec >= 1000000){ in timeval_add_msec() 21 tv->tv_usec -= 1000000; in timeval_add_msec() 22 tv->tv_sec++; in timeval_add_msec() 44 struct timeval tv; in usec_sleep() local 64 fio_gettime(&tv, NULL); in usec_sleep() 69 ts = utime_since_now(&tv); in usec_sleep() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
D | 11-1.c | 46 struct timeval tv; in main() local 58 tv.tv_sec = 0; in main() 59 tv.tv_usec = 0; in main() 60 select(0, NULL, NULL, NULL, &tv); in main() 69 tv.tv_sec = 1; in main() 70 tv.tv_usec = 0; in main() 71 select(0, NULL, NULL, NULL, &tv); in main() 74 struct timeval tv; in main() local 82 tv.tv_sec = 1; in main() 83 tv.tv_usec = 0; in main() [all …]
|
/external/bison/lib/ |
D | timevar.c | 287 struct timevar_def *tv = &timevars[timevar]; local 295 tv->used = 1; 298 if (tv->standalone) 325 context->timevar = tv; 376 struct timevar_def *tv = &timevars[timevar]; local 382 tv->used = 1; 386 if (tv->standalone) 388 tv->standalone = 1; 390 get_time (&tv->start_time); 400 struct timevar_def *tv = &timevars[timevar]; local [all …]
|
/external/tremolo/Tremolo/ |
D | misc.c | 91 struct timeval tv; in _insert() local 95 gettimeofday(&tv,&tz); in _insert() 115 if(start_time==-1)start_time=(tv.tv_sec*1000)+(tv.tv_usec/1000); in _insert() 121 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 124 -start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 129 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 131 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _insert() 148 struct timeval tv; in _ripremove() local 155 gettimeofday(&tv,&tz); in _ripremove() 156 fprintf(out,"%ld, %ld\n",-start_time+(tv.tv_sec*1000)+(tv.tv_usec/1000), in _ripremove() [all …]
|
/external/dhcpcd-6.8.2/ |
D | common.h | 88 #define timespec_to_double(tv) \ argument 89 ((double)(tv)->tv_sec + (double)((tv)->tv_nsec) / 1000000000.0) 90 #define timespecnorm(tv) do { \ argument 91 while ((tv)->tv_nsec >= NSEC_PER_SEC) { \ 92 (tv)->tv_sec++; \ 93 (tv)->tv_nsec -= NSEC_PER_SEC; \ 96 #define ts_to_ms(ms, tv) do { \ argument 97 ms = (tv)->tv_sec * MSEC_PER_SEC; \ 98 ms += (tv)->tv_nsec / MSEC_PER_NSEC; \ 100 #define ms_to_ts(tv, ms) do { \ argument [all …]
|
/external/libmicrohttpd/src/examples/ |
D | benchmark_https.c | 69 struct timeval *tv = *con_cls; in completed_callback() local 73 if (NULL == tv) in completed_callback() 78 if (tve.tv_usec >= tv->tv_usec) in completed_callback() 79 delta += (tve.tv_sec - tv->tv_sec) * 1000000LL in completed_callback() 80 + (tve.tv_usec - tv->tv_usec); in completed_callback() 82 delta += (tve.tv_sec - tv->tv_sec) * 1000000LL in completed_callback() 83 - tv->tv_usec + tve.tv_usec; in completed_callback() 88 free (tv); in completed_callback() 96 struct timeval *tv = malloc (sizeof (struct timeval)); in uri_logger_cb() local 98 if (NULL != tv) in uri_logger_cb() [all …]
|
D | benchmark.c | 69 struct timeval *tv = *con_cls; in completed_callback() local 73 if (NULL == tv) in completed_callback() 78 if (tve.tv_usec >= tv->tv_usec) in completed_callback() 79 delta += (tve.tv_sec - tv->tv_sec) * 1000000LL in completed_callback() 80 + (tve.tv_usec - tv->tv_usec); in completed_callback() 82 delta += (tve.tv_sec - tv->tv_sec) * 1000000LL in completed_callback() 83 - tv->tv_usec + tve.tv_usec; in completed_callback() 88 free (tv); in completed_callback() 96 struct timeval *tv = malloc (sizeof (struct timeval)); in uri_logger_cb() local 98 if (NULL != tv) in uri_logger_cb() [all …]
|
/external/ltp/testcases/kernel/syscalls/pselect/ |
D | pselect01.c | 40 struct timespec tv; member 79 struct timespec tv; in verify_pselect() local 86 t->tv.tv_sec, t->tv.tv_nsec, t->iterations); in verify_pselect() 94 tv = t->tv; in verify_pselect() 97 pselect(0, &readfds, NULL, NULL, &tv, NULL); in verify_pselect() 102 if (elapsed_us >= 10 * tst_timespec_to_us(t->tv) in verify_pselect() 106 elapsed_us, tst_timespec_to_us(t->tv)); in verify_pselect() 112 requested_us = tst_timespec_to_us(t->tv) * t->iterations; in verify_pselect() 113 threshold = compute_threshold(tst_timespec_to_us(t->tv), t->iterations); in verify_pselect() 118 tst_timespec_to_us(t->tv), 1.00 * threshold / t->iterations); in verify_pselect()
|
/external/libchrome/base/ |
D | os_compat_android.cc | 25 int futimes(int fd, const struct timeval tv[2]) { in futimes() 26 if (tv == NULL) in futimes() 29 if (tv[0].tv_usec < 0 || tv[0].tv_usec >= 1000000 || in futimes() 30 tv[1].tv_usec < 0 || tv[1].tv_usec >= 1000000) { in futimes() 37 ts[0].tv_sec = tv[0].tv_sec; in futimes() 38 ts[0].tv_nsec = tv[0].tv_usec * 1000; in futimes() 39 ts[1].tv_sec = tv[1].tv_sec; in futimes() 40 ts[1].tv_nsec = tv[1].tv_usec * 1000; in futimes()
|
/external/toybox/toys/pending/ |
D | brctl.c | 175 static void strtotimeval(struct timeval *tv, char *time) in strtotimeval() argument 180 tv->tv_sec = secs; in strtotimeval() 181 tv->tv_usec = 1000000 * (secs - tv->tv_sec); in strtotimeval() 184 static unsigned long tv_to_jify(struct timeval *tv) in tv_to_jify() argument 188 jify = 1000000ULL * tv->tv_sec + tv->tv_usec; in tv_to_jify() 204 struct timeval tv; in br_set_ageing_time() local 206 strtotimeval(&tv, argv[1]); in br_set_ageing_time() 207 set_time(argv[0], BRCTL_SET_AGEING_TIME, tv_to_jify(&tv)); in br_set_ageing_time() 212 struct timeval tv; in br_set_fwd_delay() local 214 strtotimeval(&tv, argv[1]); in br_set_fwd_delay() [all …]
|
/external/webrtc/webrtc/system_wrappers/source/ |
D | clock.cc | 51 timeval tv = CurrentTimeVal(); in CurrentNtp() local 53 Adjust(tv, &seconds, µseconds_in_seconds); in CurrentNtp() 60 timeval tv = CurrentTimeVal(); in CurrentNtpInMilliseconds() local 63 Adjust(tv, &seconds, µseconds_in_seconds); in CurrentNtpInMilliseconds() 71 static void Adjust(const timeval& tv, uint32_t* adjusted_s, in Adjust() argument 73 *adjusted_s = tv.tv_sec + kNtpJan1970; in Adjust() 74 *adjusted_us_in_s = tv.tv_usec / 1e6; in Adjust() 110 struct timeval tv; in CurrentTimeVal() local 122 tv.tv_sec = (uint32_t)(Time / (uint64_t)10000000); in CurrentTimeVal() 123 tv.tv_usec = (uint32_t)((Time % (uint64_t)10000000) / 10); in CurrentTimeVal() [all …]
|