Sign in
chromium
/
native_client
/
nacl-bionic
/
cf0f6b82425dbd52301c81ab105b2d18311f8141
/
.
/
libc
/
arch-nacl
/
syscalls
/
dup2.c
blob: a912cc7eaa3159b4c5575d60158f9454f74a0dbf [
file
] [
log
] [
blame
]
// Copyright 2013 Google Inc. All Rights Reserved.
#include
<errno.h>
#include
<irt_syscalls.h>
int
dup2
(
int
fd
,
int
newfd
)
{
int
result
=
__nacl_irt_dup2
(
fd
,
newfd
);
if
(
result
!=
0
)
{
errno
=
result
;
return
-
1
;
}
return
newfd
;
}