CS350 COS
COS
Loading...
Searching...
No Matches
dirent.h
Go to the documentation of this file.
1
2
#ifndef __SYS_DIRENT_H__
3
#define __SYS_DIRENT_H__
4
5
#include <
stdint.h
>
6
7
#define NAME_MAX 256
8
9
struct
dirent
{
10
ino_t
d_ino
;
11
uint16_t
d_reclen
;
12
uint8_t
d_type
;
13
uint8_t
d_namlen
;
14
char
d_name
[
NAME_MAX
];
15
};
16
17
#define DT_UNKNOWN 0
18
#define DT_REG 1
19
#define DT_DIR 2
20
#define DT_LNK 3
21
#define DT_FIFO 4
22
23
#endif
/* __SYS_DIRENT_H__ */
24
stdint.h
dirent::d_name
char d_name[NAME_MAX]
Definition:
dirent.h:14
dirent::d_reclen
uint16_t d_reclen
Definition:
dirent.h:11
dirent::d_type
uint8_t d_type
Definition:
dirent.h:12
dirent::d_namlen
uint8_t d_namlen
Definition:
dirent.h:13
dirent::d_ino
ino_t d_ino
Definition:
dirent.h:10
NAME_MAX
#define NAME_MAX
Definition:
dirent.h:7
dirent
Definition:
dirent.h:9
ino_t
uint64_t ino_t
Definition:
types.h:23
uint16_t
unsigned short uint16_t
Definition:
types.h:11
uint8_t
unsigned char uint8_t
Definition:
types.h:10
sys
include
dirent.h
Generated by
1.9.6