Sign in
akaros
/
upstream
/
f29e71bb4424ea9e1a3cfccd4985e18fd23e42b9
/
.
/
tools
/
compilers
/
gcc-glibc
/
glibc-2.19-akaros
/
sysdeps
/
akaros
/
check_fds.c
blob: 3f2a78448d48b5d49bdeff4f12508b2ea61b4c7f [
file
] [
log
] [
blame
]
#include
<fcntl.h>
#include
<unistd.h>
#include
<assert.h>
void
__libc_check_standard_fds
(
void
)
{
#define
check_one_fd
(
fd
)
assert
(
__fcntl
((
fd
),
F_GETFD
)
!=
-
1
)
check_one_fd
(
STDIN_FILENO
);
check_one_fd
(
STDOUT_FILENO
);
check_one_fd
(
STDERR_FILENO
);
}