Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
9f6611bb31a6a367859a92a360b46db5f9135602
/
.
/
tests
/
dup.c
blob: 6debeb4947ca9cf1650093c34ad2797a4bf47b07 [
file
] [
log
] [
blame
]
#include
"tests.h"
#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
,
errno2name
());
puts
(
"+++ exited with 0 +++"
);
return
0
;
}