Sign in
akaros
/
upstream
/
53347cfe52b994bafda672ff3ff6e35e4e7aa464
/
.
/
tools
/
compilers
/
gcc-glibc
/
glibc-2.14.1-ros
/
sysdeps
/
ros
/
check_fds.c
blob: ff816402259a096b5b837eac57d7859303a52992 [
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
);
}