/third_party/node/test/parallel/ |
H A D | test-fs-utimes.js | 101 fs.utimes(pathType(tmpdir.path), atime, mtime, common.mustCall((err) => { 102 expect_ok('utimes', tmpdir.path, err, atime, mtime); 107 fs.utimes(pathType('foobarbaz'), atime, mtime, common.mustCall((err) => { 108 expect_errno('utimes', 'foobarbaz', err, 'ENOENT'); 163 // utimes-only error cases 166 () => fs.utimes(0, new Date(), new Date(), common.mustNotCall()), 178 () => fs.utimes(i, new Date(), new Date(), common.mustNotCall()),
|
H A D | test-fs-null-bytes.js | 81 check(fs.utimes, fs.utimesSync, 'foo\u0000bar', 0, 0); 116 check(fs.utimes, fs.utimesSync, fileUrl, 0, 0); 148 check(fs.utimes, fs.utimesSync, fileUrl2, 0, 0);
|
H A D | test-fs-promises.js | 34 utimes, 256 await utimes(dest, new Date(), new Date()); 259 await handle.utimes(new Date(), new Date());
|
H A D | test-trace-events-fs-async.js | 239 fs.utimes('fs25.txt', 1, 1, () => {
|
/third_party/ltp/testcases/kernel/syscalls/utimes/ |
H A D | utimes01.c | 10 * 1) utimes() returns -1 and sets errno to EACCES if times 14 * 2) utimes() returns -1 and sets errno to ENOENT if filename 16 * 3) utimes() returns -1 and sets errno to EFAULT if filename 18 * 4) utimes() returns -1 and sets errno to EPERM if times is 21 * 5) utimes() returns -1 and sets errno to EROFS if path resides 81 TEST(utimes(tc->pathname, tc->times)); in utimes_verify() 84 tst_res(TPASS | TTERRNO, "utimes() worked as expected"); in utimes_verify() 87 "utimes() failed unexpectedly; expected: %d - %s", in utimes_verify() 91 if (TST_ERR == 0 && utimes(tc->pathname, tmp_tv) == -1) in utimes_verify() 92 tst_brk(TBROK | TERRNO, "utimes() faile in utimes_verify() [all...] |
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | time.h | 24 int utimes (const char *, const struct timeval [2]); 63 __REDIR(utimes, __utimes_time64);
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | time.h | 24 int utimes (const char *, const struct timeval [2]); 63 __REDIR(utimes, __utimes_time64);
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | time.h | 55 int utimes (const char *, const struct timeval [2]); 90 __REDIR(utimes, __utimes_time64);
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | time.h | 24 int utimes (const char *, const struct timeval [2]); 63 __REDIR(utimes, __utimes_time64);
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | utimes.c | 33 const char *path = "/data/utimes.txt"; in utimes_0100() 48 if (utimes(path, NULL) != 0) { in utimes_0100() 49 t_error("%s utimes failed", __func__); in utimes_0100() 54 t_error("%s utimes failed", __func__); in utimes_0100() 67 const char *path = "/data/utimes.txt"; in utimes_0200() 77 int result = utimes(path, tv); in utimes_0200() 79 t_error("%s utimes failed", __func__); in utimes_0200() 83 t_error("%s utimes failed", __func__); in utimes_0200()
|
/third_party/musl/include/sys/ |
H A D | time.h | 24 int utimes (const char *, const struct timeval [2]); 63 __REDIR(utimes, __utimes_time64);
|
/third_party/musl/src/linux/ |
H A D | utimes.c | 6 int utimes(const char *path, const struct timeval times[2]) in utimes() function
|
/third_party/musl/porting/liteos_a/user/src/linux/ |
H A D | utimes.c | 6 int utimes(const char *path, const struct timeval times[2]) in utimes() function
|
/third_party/musl/compat/time32/ |
H A D | utimes_time32.c | 8 return utimes(path, !times32 ? 0 : ((struct timeval[2]){ in __utimes_time32()
|
/third_party/musl/libc-test/src/api/ |
H A D | sys_time.c | 29 {int(*p)(const char*,const struct timeval[]) = utimes;} in f()
|
/third_party/ltp/lib/ |
H A D | safe_file_ops.c | 398 ret = utimes(pathname, NULL); in safe_touch() 435 ret = utimes(pathname, cotimes); in safe_touch() 447 "Invalid utimes('%s') return value %d", in safe_touch()
|
/third_party/node/lib/internal/fs/ |
H A D | promises.js | 195 utimes(atime, mtime) { 943 async function utimes(path, atime, mtime) { 945 return binding.utimes(pathModule.toNamespacedPath(path), 1055 utimes,
|
/third_party/curl/src/ |
H A D | tool_filetime.c | 139 if(utimes(filename, times)) { in setfiletime()
|
/third_party/gn/src/gn/ |
H A D | function_write_file_unittest.cc | 97 ASSERT_EQ(utimes(foo_name.value().c_str(), times), 0); in TEST_F()
|
/third_party/musl/libc-test/src/common/ |
H A D | test.h | 94 #define __utimes_time64 utimes
|
/third_party/node/lib/internal/fs/cp/ |
H A D | cp.js | 47 utimes, 270 // (through utimes call) 300 return utimes(dest, updatedSrcStat.atime, updatedSrcStat.mtime);
|
/third_party/node/deps/npm/node_modules/@npmcli/fs/lib/cp/ |
H A D | polyfill.js | 47 utimes, 317 // (through utimes call) 347 return utimes(dest, updatedSrcStat.atime, updatedSrcStat.mtime)
|
/third_party/rust/crates/nix/src/sys/ |
H A D | stat.rs | 352 /// `utimes(path, times)` is identical to 359 /// [utimes(2)](https://pubs.opengroup.org/onlinepubs/9699919799/functions/utimes.html). 360 pub fn utimes<P: ?Sized + NixPath>( in utimes() functions 367 libc::utimes(cstr.as_ptr(), ×[0]) in utimes() 436 /// `utimes(path, times)`. The latter is a deprecated API so prefer using the
|
/third_party/ltp/testcases/kernel/syscalls/symlink/ |
H A D | symlink01.c | 1665 struct utimbuf utimes; in do_utime() local 1673 utimes.actime = asymlink.st_atime + a_time_value; in do_utime() 1674 utimes.modtime = asymlink.st_mtime + a_time_value; in do_utime() 1678 if (utime(tc_ptr->fn_arg[1], &utimes) == -1) in do_utime()
|
/third_party/rust/crates/nix/test/ |
H A D | test_stat.rs | 43 use nix::sys::stat::{futimens, utimes}; 230 utimes(&fullpath, &TimeVal::seconds(9990), &TimeVal::seconds(5550)) in test_utimes()
|