/bionic/libc/bionic/ |
sys_time.cpp | 37 static int futimesat(int fd, const char* path, const timeval tv[2], int flags) { 39 if (tv && (!timespec_from_timeval(ts[0], tv[0]) || !timespec_from_timeval(ts[1], tv[1]))) { 43 return utimensat(fd, path, tv ? ts : nullptr, flags); 46 int utimes(const char* path, const timeval tv[2]) { 47 return futimesat(AT_FDCWD, path, tv, 0); 50 int lutimes(const char* path, const timeval tv[2]) { 51 return futimesat(AT_FDCWD, path, tv, AT_SYMLINK_NOFOLLOW); 54 int futimesat(int fd, const char* path, const timeval tv[2]) [all...] |
/external/toybox/toys/other/ |
usleep.c | 20 struct timespec tv; local 23 tv.tv_sec = delay/1000000; 24 tv.tv_nsec = (delay%1000000) * 1000; 25 toys.exitval = !!nanosleep(&tv, NULL);
|
/external/toybox/toys/posix/ |
sleep.c | 26 struct timespec tv; local 28 tv.tv_sec = xparsetime(*toys.optargs, 9, &tv.tv_nsec); 29 toys.exitval = !!nanosleep(&tv, NULL);
|
/external/strace/tests/ |
xettimeofday.c | 40 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); 43 if (syscall(__NR_gettimeofday, tv, NULL)) 46 (long long) tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec)); 49 if (syscall(__NR_gettimeofday, tv, tz)) 53 (long long) tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 57 tv->tv_sec = -1; 58 tv->tv_usec = 1000000; 59 assert(syscall(__NR_settimeofday, tv, tz) == -1) [all...] |
futimesat.c | 41 print_tv(const struct timeval *tv) 44 (long long) tv->tv_sec, 45 zero_extend_signed_to_ull(tv->tv_usec)); 46 print_time_t_usec(tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec), 1); 74 struct timeval *const tv = tail_alloc(sizeof(*tv) * 2); local 110 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 1)); 112 qname, tv + 1, errstr); 114 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 2)) [all...] |
xutimes.c | 48 print_tv(const TEST_STRUCT *const tv) 51 (long long) tv->tv_sec, 52 zero_extend_signed_to_ull(tv->tv_usec)); 53 print_time_t_usec(tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 1); 75 TEST_STRUCT *const tv = tail_alloc(sizeof(*tv) * 2); local 99 k_utimes(kfname, (uintptr_t) (tv + 1)); 101 qname, tv + 1, errstr); 103 k_utimes(kfname, (uintptr_t) (tv + 2)) [all...] |
/external/strace/tests-m32/ |
xettimeofday.c | 40 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); 43 if (syscall(__NR_gettimeofday, tv, NULL)) 46 (long long) tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec)); 49 if (syscall(__NR_gettimeofday, tv, tz)) 53 (long long) tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 57 tv->tv_sec = -1; 58 tv->tv_usec = 1000000; 59 assert(syscall(__NR_settimeofday, tv, tz) == -1) [all...] |
futimesat.c | 41 print_tv(const struct timeval *tv) 44 (long long) tv->tv_sec, 45 zero_extend_signed_to_ull(tv->tv_usec)); 46 print_time_t_usec(tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec), 1); 74 struct timeval *const tv = tail_alloc(sizeof(*tv) * 2); local 110 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 1)); 112 qname, tv + 1, errstr); 114 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 2)) [all...] |
xutimes.c | 48 print_tv(const TEST_STRUCT *const tv) 51 (long long) tv->tv_sec, 52 zero_extend_signed_to_ull(tv->tv_usec)); 53 print_time_t_usec(tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 1); 75 TEST_STRUCT *const tv = tail_alloc(sizeof(*tv) * 2); local 99 k_utimes(kfname, (uintptr_t) (tv + 1)); 101 qname, tv + 1, errstr); 103 k_utimes(kfname, (uintptr_t) (tv + 2)) [all...] |
/external/strace/tests-mx32/ |
xettimeofday.c | 40 TAIL_ALLOC_OBJECT_CONST_PTR(struct timeval, tv); 43 if (syscall(__NR_gettimeofday, tv, NULL)) 46 (long long) tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec)); 49 if (syscall(__NR_gettimeofday, tv, tz)) 53 (long long) tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 57 tv->tv_sec = -1; 58 tv->tv_usec = 1000000; 59 assert(syscall(__NR_settimeofday, tv, tz) == -1) [all...] |
futimesat.c | 41 print_tv(const struct timeval *tv) 44 (long long) tv->tv_sec, 45 zero_extend_signed_to_ull(tv->tv_usec)); 46 print_time_t_usec(tv->tv_sec, 47 zero_extend_signed_to_ull(tv->tv_usec), 1); 74 struct timeval *const tv = tail_alloc(sizeof(*tv) * 2); local 110 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 1)); 112 qname, tv + 1, errstr); 114 k_futimesat(kfdcwd, kfname, (uintptr_t) (tv + 2)) [all...] |
xutimes.c | 48 print_tv(const TEST_STRUCT *const tv) 51 (long long) tv->tv_sec, 52 zero_extend_signed_to_ull(tv->tv_usec)); 53 print_time_t_usec(tv->tv_sec, 54 zero_extend_signed_to_ull(tv->tv_usec), 1); 75 TEST_STRUCT *const tv = tail_alloc(sizeof(*tv) * 2); local 99 k_utimes(kfname, (uintptr_t) (tv + 1)); 101 qname, tv + 1, errstr); 103 k_utimes(kfname, (uintptr_t) (tv + 2)) [all...] |
/device/linaro/bootloader/arm-trusted-firmware/include/lib/stdlib/sys/ |
timespec.h | 41 #define TIMEVAL_TO_TIMESPEC(tv, ts) \ 43 (ts)->tv_sec = (tv)->tv_sec; \ 44 (ts)->tv_nsec = (tv)->tv_usec * 1000; \ 46 #define TIMESPEC_TO_TIMEVAL(tv, ts) \ 48 (tv)->tv_sec = (ts)->tv_sec; \ 49 (tv)->tv_usec = (ts)->tv_nsec / 1000; \
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
NoMetadataTvInputService.java | 17 package android.media.tv.cts;
|
NoPermissionTvInputService.java | 17 package android.media.tv.cts;
|
TvInputSettingsActivityStub.java | 17 package android.media.tv.cts;
|
TvInputSetupActivityStub.java | 17 package android.media.tv.cts;
|
/bionic/tests/ |
sys_time_test.cpp | 35 timeval tv[2] = {}; local 37 tv[0].tv_usec = -123; 38 ASSERT_EQ(-1, utimes(tf.path, tv)); 40 tv[0].tv_usec = 1234567; 41 ASSERT_EQ(-1, utimes(tf.path, tv)); 44 tv[0].tv_usec = 0; 46 tv[1].tv_usec = -123; 47 ASSERT_EQ(-1, utimes(tf.path, tv)); 49 tv[1].tv_usec = 1234567; 50 ASSERT_EQ(-1, utimes(tf.path, tv)); 62 timeval tv[2] = {}; local 89 timeval tv[2] = {}; local 116 timeval tv[2] = {}; local [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
11-1.c | 46 struct timeval tv; local 58 tv.tv_sec = 0; 59 tv.tv_usec = 0; 60 select(0, NULL, NULL, NULL, &tv); 69 tv.tv_sec = 1; 70 tv.tv_usec = 0; 71 select(0, NULL, NULL, NULL, &tv); 74 struct timeval tv; local 82 tv.tv_sec = 1; 83 tv.tv_usec = 0 [all...] |
/bionic/libc/upstream-netbsd/lib/libc/gen/ |
utime.c | 52 struct timeval tv[2], *tvp; local 59 tv[0].tv_sec = times->actime; 60 tv[1].tv_sec = times->modtime; 61 tv[0].tv_usec = tv[1].tv_usec = 0; 62 tvp = tv;
|
/device/linaro/bootloader/edk2/StdLib/PosixLib/Gen/ |
utime.c | 60 struct timeval tv[2], *tvp;
local 67 tv[0].tv_sec = times->actime;
68 tv[1].tv_sec = times->modtime;
69 tv[0].tv_usec = tv[1].tv_usec = 0;
70 tvp = tv;
|
/device/google/cuttlefish/vsoc_x86/tv/ |
device.mk | 17 $(call inherit-product, device/google/cuttlefish/shared/tv/device.mk) 21 PRODUCT_MODEL := Cuttlefish x86 tv 22 # PRODUCT_PACKAGE_OVERLAYS := device/google/cuttlefish/vsoc_x86/tv/overlay
|
/build/kati/ |
timeutil.cc | 30 struct timeval tv; 31 if (gettimeofday(&tv, NULL) < 0) 33 return tv.tv_sec + tv.tv_usec * 0.001 * 0.001;
|
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/ |
StubSetupActivity.java | 17 package com.android.cts.tv.hostside;
|
/cts/tests/tests/tv/src/android/tv/settings/cts/ |
SettingsLeanbackStubActivity.java | 17 package android.tv.settings.cts;
|