summaryrefslogtreecommitdiff
path: root/Kernel/API/Syscall.h
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2022-01-11 16:51:34 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-12 14:54:12 +0100
commit182016d7c0059e9cfd74124c3d732060d31f3cec (patch)
treeda1c24baf53142d00e3aee901ca858f6c6580150 /Kernel/API/Syscall.h
parent5f71925aa42ca3c5665d66ec5ada87494ad0a885 (diff)
downloadserenity-182016d7c0059e9cfd74124c3d732060d31f3cec.zip
Kernel+LibC+LibCore+UE: Implement `fchmodat(2)`
This function is an extended version of `chmod(2)` that lets one control whether to dereference symlinks, and specify a file descriptor to a directory that will be used as the base for relative paths.
Diffstat (limited to 'Kernel/API/Syscall.h')
-rw-r--r--Kernel/API/Syscall.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h
index d02184fdfd..1fbea5601a 100644
--- a/Kernel/API/Syscall.h
+++ b/Kernel/API/Syscall.h
@@ -478,6 +478,13 @@ struct SC_statvfs_params {
struct statvfs* buf;
};
+struct SC_chmod_params {
+ int dirfd;
+ StringArgument path;
+ u16 mode;
+ int follow_symlinks;
+};
+
void initialize();
int sync();