repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
loongarch64: add TLSDESC support
[musl.git]
/
src
/
linux
/
getdents.c
blob
97f76e1479419011ada9fb02c427589d51b73ffb
1
#define _BSD_SOURCE
2
#include <dirent.h>
3
#include <limits.h>
4
#include
"syscall.h"
5
6
int
getdents
(
int
fd
,
struct
dirent
*
buf
,
size_t
len
)
7
{
8
if
(
len
>
INT_MAX
)
len
=
INT_MAX
;
9
return
syscall
(
SYS_getdents
,
fd
,
buf
,
len
);
10
}