diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-11-17 17:38:58 -0800 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-11-17 17:38:58 -0800 |
commit | 7eb20457ff3d80cc81d54204ffd2c9edaf991905 (patch) | |
tree | 8207073b475156293155accf6cc7804ff1a0f3eb /sys/src/dup.c | |
parent | 8d60b38fbe778de30c3a1751b35d8e366882cd01 (diff) |
automated platform specific code parsing
Diffstat (limited to 'sys/src/dup.c')
-rw-r--r-- | sys/src/dup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/dup.c b/sys/src/dup.c index 0943f52..5877df3 100644 --- a/sys/src/dup.c +++ b/sys/src/dup.c @@ -1,7 +1,8 @@ #include "internal.h" int -sys·dup(int fd) +sys·dup(int oldfd, int newfd) { - return syscall(·Dup, fd); + intptr ret = syscall(·Dup2, oldfd, newfd); + return error(ret); } |