From 182016d7c0059e9cfd74124c3d732060d31f3cec Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Tue, 11 Jan 2022 16:51:34 +0100 Subject: 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. --- Kernel/API/Syscall.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Kernel/API/Syscall.h') 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(); -- cgit v1.2.3