1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +00:00

Kernel: Implement fchdir syscall

The fchdir() function is equivalent to chdir() except that the
directory that is to be the new current working directory is
specified by a file descriptor.
This commit is contained in:
Mauri de Souza Nunes 2019-09-11 20:18:25 -03:00 committed by Andreas Kling
parent 26e81ad574
commit 7d85fc00e4
6 changed files with 24 additions and 0 deletions

View file

@ -68,6 +68,7 @@ int close(int fd);
pid_t waitpid(pid_t, int* wstatus, int options);
pid_t wait(int* wstatus);
int chdir(const char* path);
int fchdir(int fd);
char* getcwd(char* buffer, size_t size);
char* getwd(char* buffer);
int fstat(int fd, struct stat* statbuf);