1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +09:00

Kernel+Userland: Implement fchmod() syscall and use it to improve /bin/cp.

/bin/cp will now copy the permission bits from source to destination. :^)
This commit is contained in:
Andreas Kling 2019-03-01 10:39:19 +01:00
parent b5e5f26a82
commit 1b16a29044
Notes: sideshowbarker 2024-07-19 15:34:50 +09:00
10 changed files with 54 additions and 14 deletions

View file

@ -70,6 +70,7 @@ public:
KResult unlink(const String& path, Inode& base);
KResult rmdir(const String& path, Inode& base);
KResult chmod(const String& path, mode_t, Inode& base);
KResult chmod(Inode&, mode_t);
KResult chown(const String& path, uid_t, gid_t, Inode& base);
KResult access(const String& path, int mode, Inode& base);
bool stat(const String& path, int& error, int options, Inode& base, struct stat&);