Sign in
cobalt
/
cobalt
/
b108943525536ed016362e9c99ce219a9c351109
/
.
/
third_party
/
musl
/
src
/
linux
/
getdents.c
blob: 97f76e1479419011ada9fb02c427589d51b73ffb [
file
] [
log
] [
blame
]
#define
_BSD_SOURCE
#include
<dirent.h>
#include
<limits.h>
#include
"syscall.h"
int
getdents
(
int
fd
,
struct
dirent
*
buf
,
size_t
len
)
{
if
(
len
>
INT_MAX
)
len
=
INT_MAX
;
return
syscall
(
SYS_getdents
,
fd
,
buf
,
len
);
}