summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/sys
diff options
context:
space:
mode:
authorMart G <martg_@hotmail.com>2021-05-14 20:34:31 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-14 23:32:10 +0200
commite7310ba45a5eaafd0f4a9dae241271e5de9869ba (patch)
tree2b8ed25c3c39f25fd60d3c49de554965d7995e05 /Userland/Libraries/LibC/sys
parent875116c3e5960770ba7adf7f3e5108ec33981b7b (diff)
downloadserenity-e7310ba45a5eaafd0f4a9dae241271e5de9869ba.zip
Kernel+LibC: Add fstatat
The function fstatat can do the same thing as the stat and lstat functions. However, it can be passed the file descriptor of a directory which will be used when as the starting point for relative paths. This is contrary to stat and lstat which use the current working directory as the starting for relative paths.
Diffstat (limited to 'Userland/Libraries/LibC/sys')
-rw-r--r--Userland/Libraries/LibC/sys/stat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/sys/stat.h b/Userland/Libraries/LibC/sys/stat.h
index 46e9f48f0e..579559d796 100644
--- a/Userland/Libraries/LibC/sys/stat.h
+++ b/Userland/Libraries/LibC/sys/stat.h
@@ -77,5 +77,6 @@ int mkfifo(const char* pathname, mode_t);
int fstat(int fd, struct stat* statbuf);
int lstat(const char* path, struct stat* statbuf);
int stat(const char* path, struct stat* statbuf);
+int fstatat(int fd, const char* path, struct stat* statbuf, int flags);
__END_DECLS