mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:48:13 +00:00
Kernel+Userland: Implement mknod() syscall and add a /bin/mknod program.
This commit is contained in:
parent
abb5c890e0
commit
8b249bd09b
15 changed files with 107 additions and 14 deletions
|
@ -364,10 +364,10 @@ int access(const char* pathname, int mode)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int mknod(const char* pathname, mode_t, dev_t)
|
||||
int mknod(const char* pathname, mode_t mode, dev_t dev)
|
||||
{
|
||||
(void) pathname;
|
||||
ASSERT_NOT_REACHED();
|
||||
int rc = syscall(SC_mknod, pathname, mode, dev);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
long fpathconf(int fd, int name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue