1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00

Kernel+Userland: Add the rename() syscall along with a basic /bin/mv.

This commit is contained in:
Andreas Kling 2019-04-07 23:35:26 +02:00
parent 71b6436552
commit 37ae00a4dd
11 changed files with 99 additions and 2 deletions

View file

@ -75,6 +75,7 @@ public:
KResult access(const String& path, int mode, Inode& base);
KResult stat(const String& path, int options, Inode& base, struct stat&);
KResult utime(const String& path, Inode& base, time_t atime, time_t mtime);
KResult rename(const String& oldpath, const String& newpath, Inode& base);
KResultOr<Retained<Inode>> open_directory(const String& path, Inode& base);
void register_device(Device&);