diff options
Diffstat (limited to 'Userland/Libraries/LibC/stat.cpp')
-rw-r--r-- | Userland/Libraries/LibC/stat.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/stat.cpp b/Userland/Libraries/LibC/stat.cpp index bcb52fd898..d1ce13ea90 100644 --- a/Userland/Libraries/LibC/stat.cpp +++ b/Userland/Libraries/LibC/stat.cpp @@ -109,4 +109,10 @@ int fstatat(int fd, char const* path, struct stat* statbuf, int flags) { return do_stat(fd, path, statbuf, !(flags & AT_SYMLINK_NOFOLLOW)); } + +// https://pubs.opengroup.org/onlinepubs/9699919799/functions/futimens.html +int futimens(int fd, struct timespec const times[2]) +{ + return utimensat(fd, "", times, 0); +} } |