1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 14:57:35 +00:00

Kernel: Pass path+length to the stat() and lstat() syscalls

It's not pleasant having to deal with null-terminated strings as input
to syscalls, so let's get rid of them one by one.
This commit is contained in:
Andreas Kling 2020-01-05 22:02:31 +01:00
parent 152a83fac5
commit f231e9ea76
3 changed files with 16 additions and 10 deletions

View file

@ -127,8 +127,8 @@ public:
ssize_t sys$write(int fd, const u8*, ssize_t);
ssize_t sys$writev(int fd, const struct iovec* iov, int iov_count);
int sys$fstat(int fd, stat*);
int sys$lstat(const char*, stat*);
int sys$stat(const char*, stat*);
int sys$lstat(const char*, size_t, stat*);
int sys$stat(const char*, size_t, stat*);
int sys$lseek(int fd, off_t, int whence);
int sys$kill(pid_t pid, int sig);
[[noreturn]] void sys$exit(int status);