summaryrefslogtreecommitdiff
path: root/lib/libc/internal/include/__dirent.h
blob: 4f9ead801a9b4db6d81f1acef18cf6f23b11b921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __LIBC_DIRENT_H
#define __LIBC_DIRENT_H

#include <stdint.h>
#include <stdio.h>
#include <sys/types.h>

struct linux_dirent64 {
	uint64_t d_ino;
	int64_t d_off;
	unsigned short d_reclen;
	unsigned char d_type;
	char d_name[];
};

struct __DIR {
	int fildes;
	int cached;
	off_t tell;
	off_t offset;
	char buffer[BUFSIZ] __attribute__((__aligned__(8)));
};

#endif