aboutsummaryrefslogtreecommitdiff
path: root/lib/sys/getdents.h
blob: b5a0c74193647fec2d6b1a1296f06befec9205fb (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"

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

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

#endif