diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-08 20:01:49 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-08 20:01:49 +0200 |
commit | c110cf193d32e49011df29f04c035054adefd10f (patch) | |
tree | b1169e121792b5ba09756ef70661bcbdd3f183b7 /Kernel/Syscall.h | |
parent | fc4022d1736e2cce3810698b9fe8a7832625277b (diff) | |
download | serenity-c110cf193d32e49011df29f04c035054adefd10f.zip |
Kernel: Have the open() syscall take an explicit path length parameter.
Instead of computing the path length inside the syscall handler, let the
caller do that work. This allows us to implement to new variants of open()
and creat(), called open_with_path_length() and creat_with_path_length().
These are suitable for use with e.g StringView.
Diffstat (limited to 'Kernel/Syscall.h')
-rw-r--r-- | Kernel/Syscall.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Kernel/Syscall.h b/Kernel/Syscall.h index 51e3dce753..58b6e9d44e 100644 --- a/Kernel/Syscall.h +++ b/Kernel/Syscall.h @@ -148,6 +148,13 @@ struct SC_mmap_params { const char* name { nullptr }; }; +struct SC_open_params { + const char* path; + int path_length; + int options; + u16 mode; +}; + struct SC_select_params { int nfds; fd_set* readfds; |