summaryrefslogtreecommitdiff
path: root/sysroot/include/sys/asm/dirent.h
blob: d761bf64ee9cb18a47abd2bf930e1e6d887f1961 (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 __MCPU_SYS_ASM_DIRENT_H
#define __MCPU_SYS_ASM_DIRENT_H

/* Fixed external MCPU assembler ABI corresponding to struct __cpu_dirent. */
#define __MCPU_DIRENT_SIZE        288
#define __MCPU_DIRENT_D_INO         0
#define __MCPU_DIRENT_D_OFF         8
#define __MCPU_DIRENT_D_RECLEN     16
#define __MCPU_DIRENT_D_TYPE       24
#define __MCPU_DIRENT_D_NAME       32
#define __MCPU_DIRENT_NAME_SIZE   256

#define DT_UNKNOWN   0
#define DT_FIFO      1
#define DT_CHR       2
#define DT_DIR       4
#define DT_BLK       6
#define DT_REG       8
#define DT_LNK      10
#define DT_SOCK     12

#endif /* __MCPU_SYS_ASM_DIRENT_H */