123456789101112131415161718192021222324252627282930313233343536 |
- #include <stdint.h>
- #include <sys/types.h>
- typedef uint32_t ino_t;
- #define GNU_ATTRIBUTE(attr) __attribute__((attr))
- #define NORETURN GNU_ATTRIBUTE(noreturn)
- #define O_RDONLY (0)
- #define O_DIRECTORY (0x4)
- #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
- #define DT_WHT 14
- #define DT_MAX (S_DT_MASK + 1)
- struct __attribute__((__packed__)) user_dirent {
- ino_t d_ino;
- uint32_t d_off;
- uint16_t d_reclen;
- char d_name[1];
-
- };
|