mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
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.
This commit is contained in:
parent
fc4022d173
commit
c110cf193d
9 changed files with 40 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue