/third_party/node/test/parallel/ |
H A D | test-fs-utimes.js | 62 function expect_ok(syscall, resource, err, atime, mtime, statSync) { 94 // Support easy setting same or different atime / mtime values. 95 const [pathType, atime, mtime = atime] = value; 101 fs.utimes(pathType(tmpdir.path), atime, mtime, common.mustCall((err) => { 102 expect_ok('utimes', tmpdir.path, err, atime, mtime); 104 fs.lutimes(pathType(lpath), atime, mtime, common.mustCall((err) => { 105 expect_ok('lutimes', lpath, err, atime, mtime, fs.lstatSync); 107 fs.utimes(pathType('foobarbaz'), atime, mtime, common.mustCall((err) => { 117 fs.futimes(fd, atime, mtim [all...] |
/third_party/openssl/test/ |
H A D | asn1_time_test.c | 113 ASN1_TIME atime; in test_table() local 118 atime.data = (unsigned char*)td->data; in test_table() 119 atime.length = strlen((char*)atime.data); in test_table() 120 atime.type = td->type; in test_table() 121 atime.flags = 0; in test_table() 123 if (!TEST_int_eq(ASN1_TIME_check(&atime), td->check_result)) { in test_table() 124 TEST_info("ASN1_TIME_check(%s) unexpected result", atime.data); in test_table() 130 if (!TEST_int_eq(ASN1_TIME_cmp_time_t(&atime, td->t), 0)) { in test_table() 131 TEST_info("ASN1_TIME_cmp_time_t(%s vs %ld) compare failed", atime in test_table() [all...] |
/third_party/ltp/testcases/kernel/syscalls/mount/ |
H A D | mount03.c | 103 time_t atime, dir_atime; in test_file_dir_noatime() local 117 atime = st.st_atime; in test_file_dir_noatime() 136 if (st.st_atime > atime) in test_file_dir_noatime() 137 tst_res(TPASS, "st.st_atime(%ld) > atime(%ld)", in test_file_dir_noatime() 138 st.st_atime, atime); in test_file_dir_noatime() 140 tst_res(TFAIL, "st.st_atime(%ld) < atime(%ld)", in test_file_dir_noatime() 141 st.st_atime, atime); in test_file_dir_noatime() 143 TST_EXP_EQ_LI(st.st_atime, atime); in test_file_dir_noatime()
|
/third_party/python/Tools/scripts/ |
H A D | pathfix.py | 151 atime = None 156 atime = statbuf.st_atime 178 if atime and mtime: 180 os.utime(filename, (atime, mtime))
|
/third_party/rust/crates/nix/src/sys/ |
H A D | stat.rs | 362 atime: &TimeVal, in utimes() 365 let times: [libc::timeval; 2] = [*atime.as_ref(), *mtime.as_ref()]; in utimes() 394 atime: &TimeVal, in lutimes() 397 let times: [libc::timeval; 2] = [*atime.as_ref(), *mtime.as_ref()]; in lutimes() 411 pub fn futimens(fd: RawFd, atime: &TimeSpec, mtime: &TimeSpec) -> Result<()> { in futimens() 412 let times: [libc::timespec; 2] = [*atime.as_ref(), *mtime.as_ref()]; in futimens() 447 atime: &TimeSpec, in utimensat() 455 let times: [libc::timespec; 2] = [*atime.as_ref(), *mtime.as_ref()]; in utimensat()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/sys/shm_h/ |
H A D | 6-1-buildonly.c | 32 time_t atime = 0, dtime = 0, ctime = 0; in dummyfcn() local 39 t.shm_atime = atime; in dummyfcn()
|
/third_party/node/lib/internal/fs/ |
H A D | promises.js | 195 utimes(atime, mtime) { 196 return fsCall(futimes, this, atime, mtime); 943 async function utimes(path, atime, mtime) { 946 toUnixTimestamp(atime), 951 async function futimes(handle, atime, mtime) { 952 atime = toUnixTimestamp(atime, 'atime'); 954 return binding.futimes(handle.fd, atime, mtime, kUsePromises); 957 async function lutimes(path, atime, mtim [all...] |
/third_party/libuv/src/unix/ |
H A D | fs.c | 273 ts[0] = uv__fs_to_timespec(req->atime); in uv__fs_futime() 283 tv[0] = uv__fs_to_timeval(req->atime); in uv__fs_futime() 296 atr.att_atime = req->atime; in uv__fs_futime() 1055 ts[0] = uv__fs_to_timespec(req->atime); in uv__fs_utime() 1064 tv[0] = uv__fs_to_timeval(req->atime); in uv__fs_utime() 1070 buf.actime = req->atime; in uv__fs_utime() 1079 atr.att_atime = req->atime; in uv__fs_utime() 1096 ts[0] = uv__fs_to_timespec(req->atime); in uv__fs_lutime() 1104 tv[0] = uv__fs_to_timeval(req->atime); in uv__fs_lutime() 1800 double atime, in uv_fs_futime() 1797 uv_fs_futime(uv_loop_t* loop, uv_fs_t* req, uv_file file, double atime, double mtime, uv_fs_cb cb) uv_fs_futime() argument 1810 uv_fs_lutime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, double mtime, uv_fs_cb cb) uv_fs_lutime() argument 2079 uv_fs_utime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, double mtime, uv_fs_cb cb) uv_fs_utime() argument [all...] |
/third_party/node/deps/uv/src/unix/ |
H A D | fs.c | 253 ts[0] = uv__fs_to_timespec(req->atime); in uv__fs_futime() 264 tv[0] = uv__fs_to_timeval(req->atime); in uv__fs_futime() 277 atr.att_atime = req->atime; in uv__fs_futime() 1145 ts[0] = uv__fs_to_timespec(req->atime); in uv__fs_utime() 1155 tv[0] = uv__fs_to_timeval(req->atime); in uv__fs_utime() 1161 buf.actime = req->atime; in uv__fs_utime() 1170 atr.att_atime = req->atime; in uv__fs_utime() 1187 ts[0] = uv__fs_to_timespec(req->atime); in uv__fs_lutime() 1196 tv[0] = uv__fs_to_timeval(req->atime); in uv__fs_lutime() 1905 double atime, in uv_fs_futime() 1902 uv_fs_futime(uv_loop_t* loop, uv_fs_t* req, uv_file file, double atime, double mtime, uv_fs_cb cb) uv_fs_futime() argument 1915 uv_fs_lutime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, double mtime, uv_fs_cb cb) uv_fs_lutime() argument 2152 uv_fs_utime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, double mtime, uv_fs_cb cb) uv_fs_utime() argument [all...] |
/third_party/libuv/test/ |
H A D | test-fs.c | 64 double atime; member 812 double atime, in check_utime() 838 ASSERT_DOUBLE_EQ(atime, (long) atime); in check_utime() 839 ASSERT_DOUBLE_EQ(mtime, (long) atime); in check_utime() 841 if (atime > 0 || (long) atime == atime) in check_utime() 842 ASSERT_EQ(s->st_atim.tv_sec, (long) atime); in check_utime() 845 ASSERT_GE(s->st_atim.tv_sec, (long) atime in check_utime() 811 check_utime(const char* path, double atime, double mtime, int test_lutime) check_utime() argument 2624 double atime; TEST_IMPL() local 2671 double atime; TEST_IMPL() local 2745 double atime; TEST_IMPL() local 2810 double atime; TEST_IMPL() local [all...] |
/third_party/ntfs-3g/src/ |
H A D | ntfs-3g_common.c | 85 { "atime", OPT_ATIME, FLGOPT_BOGUS }, 305 ctx->atime = ATIME_DISABLED; in parse_mount_options() 308 ctx->atime = ATIME_ENABLED; in parse_mount_options() 311 ctx->atime = ATIME_RELATIVE; in parse_mount_options() 557 /* The atime options exclude each other */ in parse_mount_options() 558 if (ctx->atime == ATIME_RELATIVE && ntfs_strappend(&ret, "relatime,")) in parse_mount_options() 560 else if (ctx->atime == ATIME_ENABLED && ntfs_strappend(&ret, "atime,")) in parse_mount_options() 562 else if (ctx->atime == ATIME_DISABLED && ntfs_strappend(&ret, "noatime,")) in parse_mount_options()
|
H A D | ntfs-3g_common.h | 140 ntfs_atime_t atime; member
|
/third_party/node/lib/ |
H A D | fs.js | 2103 * @param {number | string | Date} atime 2108 function utimes(path, atime, mtime, callback) { 2115 toUnixTimestamp(atime), 2124 * @param {number | string | Date} atime 2128 function utimesSync(path, atime, mtime) { 2132 toUnixTimestamp(atime), toUnixTimestamp(mtime), 2141 * @param {number | string | Date} atime 2146 function futimes(fd, atime, mtime, callback) { 2148 atime = toUnixTimestamp(atime, 'atim [all...] |
/third_party/ntfs-3g/include/fuse-lite/ |
H A D | fuse_kernel.h | 82 __u64 atime; member 251 __u64 atime; member
|
/third_party/node/deps/npm/node_modules/path-scurry/dist/cjs/ |
H A D | index.js | 269 #atime; 270 get atime() { 271 return this.#atime; 923 const { atime, atimeMs, birthtime, birthtimeMs, blksize, blocks, ctime, ctimeMs, dev, gid, ino, mode, mtime, mtimeMs, nlink, rdev, size, uid, } = st; 924 this.#atime = atime;
|
/third_party/node/deps/npm/node_modules/path-scurry/dist/mjs/ |
H A D | index.js | 241 #atime; 242 get atime() { 243 return this.#atime; 895 const { atime, atimeMs, birthtime, birthtimeMs, blksize, blocks, ctime, ctimeMs, dev, gid, ino, mode, mtime, mtimeMs, nlink, rdev, size, uid, } = st; 896 this.#atime = atime;
|
/third_party/libfuse/test/ |
H A D | test_syscalls.c | 203 static int check_times(const char *path, time_t atime, time_t mtime) in check_times() argument 212 if (stbuf.st_atime != atime) { in check_times() 213 ERROR("atime %li instead of %li", stbuf.st_atime, atime); in check_times() 227 static int fcheck_times(int fd, time_t atime, time_t mtime) 236 if (stbuf.st_atime != atime) { 237 ERROR("atime %li instead of %li", stbuf.st_atime, atime); 927 time_t atime = 987631200; in test_utime() local 936 utm.actime = atime; in test_utime() [all...] |
/third_party/libuv/src/win/ |
H A D | fs.c | 2250 INLINE static int fs__utime_handle(HANDLE handle, double atime, double mtime) { in fs__utime_handle() argument 2253 TIME_T_TO_FILETIME(atime, &filetime_a); in fs__utime_handle() 2264 double atime, in fs__utime_impl_from_path() 2287 if (fs__utime_handle(handle, atime, mtime) != 0) in fs__utime_impl_from_path() 2300 req->fs.time.atime, in fs__utime_impl() 2338 if (fs__utime_handle(handle, req->fs.time.atime, req->fs.time.mtime) != 0) { in fs__futime() 3365 int uv_fs_utime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, in uv_fs_utime() argument 3376 req->fs.time.atime = atime; in uv_fs_utime() 3382 int uv_fs_futime(uv_loop_t* loop, uv_fs_t* req, uv_file fd, double atime, in uv_fs_futime() argument 2263 fs__utime_impl_from_path(WCHAR* path, double atime, double mtime, int do_lutime) fs__utime_impl_from_path() argument 3391 uv_fs_lutime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, double mtime, uv_fs_cb cb) uv_fs_lutime() argument [all...] |
/third_party/node/deps/uv/src/win/ |
H A D | fs.c | 2269 INLINE static int fs__utime_handle(HANDLE handle, double atime, double mtime) { in fs__utime_handle() argument 2272 TIME_T_TO_FILETIME(atime, &filetime_a); in fs__utime_handle() 2283 double atime, in fs__utime_impl_from_path() 2306 if (fs__utime_handle(handle, atime, mtime) != 0) in fs__utime_impl_from_path() 2319 req->fs.time.atime, in fs__utime_impl() 2357 if (fs__utime_handle(handle, req->fs.time.atime, req->fs.time.mtime) != 0) { in fs__futime() 3378 int uv_fs_utime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, in uv_fs_utime() argument 3389 req->fs.time.atime = atime; in uv_fs_utime() 3395 int uv_fs_futime(uv_loop_t* loop, uv_fs_t* req, uv_file fd, double atime, in uv_fs_futime() argument 2282 fs__utime_impl_from_path(WCHAR* path, double atime, double mtime, int do_lutime) fs__utime_impl_from_path() argument 3404 uv_fs_lutime(uv_loop_t* loop, uv_fs_t* req, const char* path, double atime, double mtime, uv_fs_cb cb) uv_fs_lutime() argument [all...] |
/third_party/libfuse/include/ |
H A D | fuse_kernel.h | 256 uint64_t atime; member 673 uint64_t atime; member
|
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/ |
H A D | time_test.cpp | 238 int atime = tmA->tm_min; in HWTEST_F() local 239 EXPECT_EQ(33, atime); in HWTEST_F()
|
/third_party/toybox/toys/pending/ |
H A D | mke2fs.c | 184 uint32_t atime; // Access time member 532 in->atime = SWAP_LE32(that->st.st_atime); in fill_inode()
|
/third_party/node/src/ |
H A D | node_file.cc | 2490 const double atime = args[1].As<Number>()->Value(); in UTimes() local 2496 if (req_wrap_async != nullptr) { // utimes(path, atime, mtime, req) in UTimes() 2500 uv_fs_utime, *path, atime, mtime); in UTimes() 2501 } else { // utimes(path, atime, mtime, undefined, ctx) in UTimes() 2506 uv_fs_utime, *path, atime, mtime); in UTimes() 2521 const double atime = args[1].As<Number>()->Value(); in FUTimes() local 2527 if (req_wrap_async != nullptr) { // futimes(fd, atime, mtime, req) in FUTimes() 2530 uv_fs_futime, fd, atime, mtime); in FUTimes() 2531 } else { // futimes(fd, atime, mtime, undefined, ctx) in FUTimes() 2536 uv_fs_futime, fd, atime, mtim in FUTimes() 2551 const double atime = args[1].As<Number>()->Value(); LUTimes() local [all...] |
/third_party/libuv/include/uv/ |
H A D | unix.h | 369 double atime; \
|
/third_party/node/deps/uv/include/uv/ |
H A D | unix.h | 369 double atime; \
|