about summary refs log tree commit diff
path: root/src/linux/getdents.c
blob: de6de3b425bcc23063d2198762ff42e80edeec4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#define _BSD_SOURCE
#include <dirent.h>
#include "syscall.h"

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

weak_alias(getdents, getdents64);