diff options
author | circl <circl.lastname@gmail.com> | 2021-12-31 19:20:17 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-01 15:08:49 +0100 |
commit | 63760603f3adec2fb696018f6c1c77feeb0dbdd0 (patch) | |
tree | 3d96a31951e538ab9cdc3c99b025ff5c9a41bb42 /Userland/Libraries/LibCore/System.h | |
parent | 344cfa0db4a76601754aead153fa52d2cde6db1e (diff) | |
download | serenity-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 'Userland/Libraries/LibCore/System.h')
-rw-r--r-- | Userland/Libraries/LibCore/System.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibCore/System.h b/Userland/Libraries/LibCore/System.h index 8ea4b27693..d30457b495 100644 --- a/Userland/Libraries/LibCore/System.h +++ b/Userland/Libraries/LibCore/System.h @@ -66,6 +66,7 @@ ErrorOr<void> ioctl(int fd, unsigned request, ...); ErrorOr<struct termios> tcgetattr(int fd); ErrorOr<void> tcsetattr(int fd, int optional_actions, struct termios const&); ErrorOr<void> chmod(StringView pathname, mode_t mode); +ErrorOr<void> lchown(StringView pathname, uid_t uid, gid_t gid); ErrorOr<void> chown(StringView pathname, uid_t uid, gid_t gid); ErrorOr<Optional<struct passwd>> getpwnam(StringView name); ErrorOr<Optional<struct group>> getgrnam(StringView name); |