summaryrefslogtreecommitdiff
path: root/src/user/lib/include/dirent.h
blob: 7c419d7350f731512f5698090f4ff8474d564b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once
#include <stdio.h>

struct dirent {
	ino_t d_ino;
	char d_name[256]; /* NAME_MAX + 1 */
};

typedef struct {
	FILE *fp;
	struct dirent dent;
} DIR;

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