fix setgroups behavior in multithreaded process
[musl.git] / src / linux / getdents.c
blob796c1e5c92499a1b0b914e3e6d5d865272026e7c
1 #define _BSD_SOURCE
2 #include <dirent.h>
3 #include <limits.h>
4 #include "syscall.h"
6 int getdents(int fd, struct dirent *buf, size_t len)
8 if (len>INT_MAX) len = INT_MAX;
9 return syscall(SYS_getdents, fd, buf, len);
12 weak_alias(getdents, getdents64);