1
Fork 0
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:
Andreas Kling 2019-05-03 22:59:58 +02:00
parent abb5c890e0
commit 8b249bd09b
15 changed files with 107 additions and 14 deletions

View file

@ -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)