Sign in
android
/
platform
/
external
/
strace
/
1f3482b
/
.
/
tests
/
dup.c
blob: 74972698297046e5cf564ef6d0cc2b1fce022ba8 [
file
] [
log
] [
blame
]
#include
<errno.h>
#include
<stdio.h>
#include
<unistd.h>
int
main
(
void
)
{
const
int
fd
=
-
1
;
int
rc
=
dup
(
fd
);
printf
(
"dup(%d) = %d %s (%m)\n"
,
fd
,
rc
,
errno
==
ENOSYS
?
"ENOSYS"
:
"EBADF"
);
puts
(
"+++ exited with 0 +++"
);
return
0
;
}