aboutsummaryrefslogtreecommitdiff
path: root/lib/sys/getdents.h
blob: 5efa3dbefc16b8b0b2e1243f53e1366438f5c84c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef GETDENTS_H
#define GETDENTS_H

#include "syscalls.h"

typedef struct {
	unsigned long  d_ino;
	unsigned long  d_off;
	unsigned short d_reclen;
	char           d_name[];
} dirent_t;

static int getdents(unsigned int fd, char *buf, unsigned int count)
{
	return syscall(GETDENTS, fd, buf, count);
}

#endif