summaryrefslogtreecommitdiffstats
path: root/include/dirent.h
blob: 1df5d904520def6d719ccd1a57fa5582cd93ef3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __DIRENT_H
#define __DIRENT_H

#include <linux/list.h>

struct dirent {
	char d_name[256];
};

typedef struct dir {
	struct device_d *dev;
	struct fs_driver_d *fsdrv;
	struct node_d *node;
	struct dirent d;
	void *priv; /* private data for the fs driver */
	struct list_head entries;
} DIR;

DIR *opendir(const char *pathname);
struct dirent *readdir(DIR *dir);
int closedir(DIR *dir);

#endif /* __DIRENT_H */