summaryrefslogtreecommitdiff
path: root/src/linux/getdents.c
blob: cab29952dfd721963ab9c4fb13a96038c7163ae8 (plain)
1
2
3
4
5
6
7
8
9
10
11
#define _BSD_SOURCE
#include <dirent.h>
#include "syscall.h"
#include "libc.h"

int getdents(int fd, struct dirent *buf, size_t len)
{
	return syscall(SYS_getdents, fd, buf, len);
}

LFS64(getdents);