diff options
author | Mart G <martg_@hotmail.com> | 2021-05-14 20:34:31 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-14 23:32:10 +0200 |
commit | e7310ba45a5eaafd0f4a9dae241271e5de9869ba (patch) | |
tree | 2b8ed25c3c39f25fd60d3c49de554965d7995e05 /Kernel/API | |
parent | 875116c3e5960770ba7adf7f3e5108ec33981b7b (diff) | |
download | serenity-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 'Kernel/API')
-rw-r--r-- | Kernel/API/Syscall.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h index 57a36cd0e3..2d4e839d35 100644 --- a/Kernel/API/Syscall.h +++ b/Kernel/API/Syscall.h @@ -422,6 +422,7 @@ struct SC_waitid_params { }; struct SC_stat_params { + int dirfd; StringArgument path; struct stat* statbuf; int follow_symlinks; |