mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
Kernel: Support open() with O_CREAT.
It's now possible to create zero-length files! :^) Also hook up the new functionality in /bin/touch.
This commit is contained in:
parent
a47f33bed3
commit
f70136a324
9 changed files with 108 additions and 39 deletions
|
@ -140,7 +140,7 @@ public:
|
|||
pid_t sys$getpid();
|
||||
pid_t sys$getppid();
|
||||
mode_t sys$umask(mode_t);
|
||||
int sys$open(const char* path, int options);
|
||||
int sys$open(const char* path, int options, mode_t mode = 0);
|
||||
int sys$close(int fd);
|
||||
ssize_t sys$read(int fd, void* outbuf, size_t nread);
|
||||
ssize_t sys$write(int fd, const void*, size_t);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue