summaryrefslogtreecommitdiff
path: root/Kernel/API
diff options
context:
space:
mode:
authorcircl <circl.lastname@gmail.com>2021-12-31 19:20:17 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-01 15:08:49 +0100
commit63760603f3adec2fb696018f6c1c77feeb0dbdd0 (patch)
tree3d96a31951e538ab9cdc3c99b025ff5c9a41bb42 /Kernel/API
parent344cfa0db4a76601754aead153fa52d2cde6db1e (diff)
downloadserenity-63760603f3adec2fb696018f6c1c77feeb0dbdd0.zip
Kernel+LibC+LibCore: Add lchown and fchownat functions
This modifies sys$chown to allow specifying whether or not to follow symlinks and in which directory. This was then used to implement lchown and fchownat in LibC and LibCore.
Diffstat (limited to 'Kernel/API')
-rw-r--r--Kernel/API/Syscall.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h
index 6372efb165..d02184fdfd 100644
--- a/Kernel/API/Syscall.h
+++ b/Kernel/API/Syscall.h
@@ -400,6 +400,8 @@ struct SC_chown_params {
StringArgument path;
u32 uid;
u32 gid;
+ int dirfd;
+ int follow_symlinks;
};
struct SC_mknod_params {