Home
last modified time | relevance | path

Searched refs:utimes (Results 1 - 25 of 37) sorted by relevance

12

/third_party/node/test/parallel/
H A Dtest-fs-utimes.js101 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 Dtest-fs-null-bytes.js81 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 Dtest-fs-promises.js34 utimes,
256 await utimes(dest, new Date(), new Date());
259 await handle.utimes(new Date(), new Date());
H A Dtest-trace-events-fs-async.js239 fs.utimes('fs25.txt', 1, 1, () => {
/third_party/ltp/testcases/kernel/syscalls/utimes/
H A Dutimes01.c10 * 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 Dtime.h24 int utimes (const char *, const struct timeval [2]);
63 __REDIR(utimes, __utimes_time64);
/third_party/musl/porting/uniproton/kernel/include/sys/
H A Dtime.h24 int utimes (const char *, const struct timeval [2]);
63 __REDIR(utimes, __utimes_time64);
/third_party/musl/porting/liteos_a/kernel/include/sys/
H A Dtime.h55 int utimes (const char *, const struct timeval [2]);
90 __REDIR(utimes, __utimes_time64);
/third_party/musl/porting/liteos_m/kernel/include/sys/
H A Dtime.h24 int utimes (const char *, const struct timeval [2]);
63 __REDIR(utimes, __utimes_time64);
/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Dutimes.c33 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 Dtime.h24 int utimes (const char *, const struct timeval [2]);
63 __REDIR(utimes, __utimes_time64);
/third_party/musl/src/linux/
H A Dutimes.c6 int utimes(const char *path, const struct timeval times[2]) in utimes() function
/third_party/musl/porting/liteos_a/user/src/linux/
H A Dutimes.c6 int utimes(const char *path, const struct timeval times[2]) in utimes() function
/third_party/musl/compat/time32/
H A Dutimes_time32.c8 return utimes(path, !times32 ? 0 : ((struct timeval[2]){ in __utimes_time32()
/third_party/musl/libc-test/src/api/
H A Dsys_time.c29 {int(*p)(const char*,const struct timeval[]) = utimes;} in f()
/third_party/ltp/lib/
H A Dsafe_file_ops.c398 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 Dpromises.js195 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 Dtool_filetime.c139 if(utimes(filename, times)) { in setfiletime()
/third_party/gn/src/gn/
H A Dfunction_write_file_unittest.cc97 ASSERT_EQ(utimes(foo_name.value().c_str(), times), 0); in TEST_F()
/third_party/musl/libc-test/src/common/
H A Dtest.h94 #define __utimes_time64 utimes
/third_party/node/lib/internal/fs/cp/
H A Dcp.js47 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 Dpolyfill.js47 utimes,
317 // (through utimes call)
347 return utimes(dest, updatedSrcStat.atime, updatedSrcStat.mtime)
/third_party/rust/crates/nix/src/sys/
H A Dstat.rs352 /// `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(), &times[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 Dsymlink01.c1665 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 Dtest_stat.rs43 use nix::sys::stat::{futimens, utimes};
230 utimes(&fullpath, &TimeVal::seconds(9990), &TimeVal::seconds(5550)) in test_utimes()

Completed in 10 milliseconds

12