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

Kernel+LibC: Unify sys$open() and sys$openat()

The syscall is now called sys$open(), but it behaves like the old sys$openat().
In userspace, open_with_path_length() is made a wrapper over openat_with_path_length().
This commit is contained in:
Sergey Bugaev 2020-01-17 21:48:44 +03:00 committed by Andreas Kling
parent d6184afcae
commit e0013a6b4c
4 changed files with 4 additions and 66 deletions

View file

@ -132,7 +132,6 @@ typedef u32 socklen_t;
__ENUMERATE_SYSCALL(setkeymap) \
__ENUMERATE_SYSCALL(clock_gettime) \
__ENUMERATE_SYSCALL(clock_nanosleep) \
__ENUMERATE_SYSCALL(openat) \
__ENUMERATE_SYSCALL(join_thread) \
__ENUMERATE_SYSCALL(module_load) \
__ENUMERATE_SYSCALL(module_unload) \
@ -218,12 +217,6 @@ struct SC_mmap_params {
};
struct SC_open_params {
StringArgument path;
int options;
u16 mode;
};
struct SC_openat_params {
int dirfd;
StringArgument path;
int options;