summaryrefslogtreecommitdiff
path: root/src/libc/unistd
diff options
context:
space:
mode:
authordzwdz2023-12-25 18:36:02 +0100
committerdzwdz2023-12-25 18:36:02 +0100
commit4e1a6f1b3c543b9fbeb882a9e97551f7c58ca65a (patch)
tree8c2048c751db8b98e3033a61b6ad5bbd11a303a9 /src/libc/unistd
parent64d4330810a37dd9c41a82ae6cc420850ca1e7da (diff)
ports: curl :^)
had to do a lot of hacky stuff, but it's there. worked on this on and off for a while now
Diffstat (limited to 'src/libc/unistd')
-rw-r--r--src/libc/unistd/unistd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libc/unistd/unistd.c b/src/libc/unistd/unistd.c
index 102e72a..9735df0 100644
--- a/src/libc/unistd/unistd.c
+++ b/src/libc/unistd/unistd.c
@@ -80,6 +80,5 @@ int getgroups(int size, gid_t list[]) {
}
int dup(int oldfd) {
- (void)oldfd;
- __libc_panic("unimplemented");
+ return _sys_dup(oldfd, -1, 0);
}