diff options
author | Anton Kling <anton@kling.gg> | 2024-11-22 22:33:06 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-11-22 22:33:06 +0100 |
commit | 8fa2af9678b9e257a1dfb1e5111f35d22366f2c6 (patch) | |
tree | d82d3b9678b2fcfdc901455f4ca2ed13dc49aaa7 /userland/libc/unistd | |
parent | 8827f3033d76b0d9c7d8d8225077176a813f7f49 (diff) |
vfs: Add dup()
Diffstat (limited to 'userland/libc/unistd')
-rw-r--r-- | userland/libc/unistd/dup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/userland/libc/unistd/dup.c b/userland/libc/unistd/dup.c new file mode 100644 index 0000000..176659b --- /dev/null +++ b/userland/libc/unistd/dup.c @@ -0,0 +1,6 @@ +#include <syscall.h> +#include <unistd.h> + +int dup(int fildes) { + RC_ERRNO(syscall(SYS_DUP, (u32)fildes, 0, 0, 0, 0)); +} |