MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / utime

Method utime

fs/extfs/extfs.cpp:1351–1358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1349 DO_EXT2FS(do_ext2fs_mknod(fs, path, mode, dev))
1350 }
1351 int utime(const char *path, const struct utimbuf *file_times) override {
1352 struct timeval tv[2];
1353 tv[0].tv_sec = file_times->actime;
1354 tv[0].tv_usec = 0;
1355 tv[1].tv_sec = file_times->modtime;
1356 tv[1].tv_usec = 0;
1357 DO_EXT2FS(do_ext2fs_utimes(fs, path, tv, 1));
1358 }
1359 int utimes(const char *path, const struct timeval tv[2]) override {
1360 DO_EXT2FS(do_ext2fs_utimes(fs, path, tv, 1));
1361 }

Callers 1

utimeFunction · 0.45

Calls 1

do_ext2fs_utimesFunction · 0.85

Tested by 1

utimeFunction · 0.36