mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
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.
This commit is contained in:
parent
344cfa0db4
commit
63760603f3
Notes:
sideshowbarker
2024-07-17 21:50:39 +09:00
Author: https://github.com/circl-lastname 🔰
Commit: 63760603f3
Pull-request: https://github.com/SerenityOS/serenity/pull/11522
Reviewed-by: https://github.com/ADKaster
8 changed files with 64 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue