summaryrefslogtreecommitdiff
path: root/Kernel/Process.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/Process.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/Process.h')
-rw-r--r--Kernel/Process.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 75f7fc2f6f..3874774186 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -359,7 +359,7 @@ public:
ErrorOr<FlatPtr> sys$rmdir(Userspace<const char*> pathname, size_t path_length);
ErrorOr<FlatPtr> sys$mount(Userspace<const Syscall::SC_mount_params*>);
ErrorOr<FlatPtr> sys$umount(Userspace<const char*> mountpoint, size_t mountpoint_length);
- ErrorOr<FlatPtr> sys$chmod(Userspace<const char*> pathname, size_t path_length, mode_t);
+ ErrorOr<FlatPtr> sys$chmod(Userspace<Syscall::SC_chmod_params const*>);
ErrorOr<FlatPtr> sys$fchmod(int fd, mode_t);
ErrorOr<FlatPtr> sys$chown(Userspace<const Syscall::SC_chown_params*>);
ErrorOr<FlatPtr> sys$fchown(int fd, UserID, GroupID);