Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
f389c4984a0fee80c5322e4d1ec3aa207e9b5c01
/
.
/
src
/
unistd
/
dup2.c
blob: 87a0d44538eb49162bf4d26824b0d35de19af0fb [
file
] [
log
] [
blame
]
#include
<unistd.h>
#include
<errno.h>
#include
"syscall.h"
int
dup2
(
int
old
,
int
new
)
{
int
r
;
while
((
r
=
__syscall
(
SYS_dup2
,
old
,
new
))==-
EBUSY
);
return
__syscall_ret
(
r
);
}