mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 14:38:21 +00:00
dup: behave like fd_duplicate expects
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
syscallret syscall_dup(int oldfd){
|
syscallret syscall_dup(int oldfd){
|
||||||
syscallret retv;
|
syscallret retv;
|
||||||
retv.errno = fd_duplicate(&arch_getcls()->thread->proc->fdtable, oldfd, ~0, 1, &retv.ret);
|
retv.errno = fd_duplicate(&arch_getcls()->thread->proc->fdtable, oldfd, 0, 1, &retv.ret);
|
||||||
return retv;
|
return retv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user