Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
strace
/
602998be62493f75562204f6bb391c7095352de9
/
.
/
tests
/
dup.c
blob: 62157e2ff8ffc828c3f1eca0f7a8fce95b5864bb [
file
] [
log
] [
blame
]
#include
"tests.h"
#include
<stdio.h>
#include
<unistd.h>
int
main
(
void
)
{
int
rc
=
dup
(-
1
);
printf
(
"dup(-1) = %d %s (%m)\n"
,
rc
,
errno2name
());
puts
(
"+++ exited with 0 +++"
);
return
0
;
}