Sign in
fuchsia
/
fuchsia
/
67fec6dc8ea9285fb54f9bc741be63218439eda5
/
.
/
third_party
/
ulib
/
musl
/
src
/
legacy
/
getdtablesize.c
blob: 55c8197ea8f35967c238662a4e39af4656a4a606 [
file
] [
log
] [
blame
]
#define
_GNU_SOURCE
#include
<limits.h>
#include
<unistd.h>
int
getdtablesize
(
void
)
{
int
max
=
sysconf
(
_SC_OPEN_MAX
);
return
max
<
INT_MAX
?
max
:
INT_MAX
;
}