|
ginnOS
The reference: libc, the libraries and the kernel
|
#include "common/stdint.h"Go to the source code of this file.
Data Structures | |
| struct | kdirent |
Macros | |
| #define | DT_UNKNOWN 0 |
| the directory records getdents writes. | |
| #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 | KDIRENT_HEADER 7 |
Functions | |
| struct kdirent | __attribute__ ((packed)) |
Variables | |
| uint32_t | d_ino |
| uint16_t | d_reclen |
| uint8_t | d_type |
| char | d_name [] |
| #define DT_UNKNOWN 0 |
the directory records getdents writes.
the layout and the DT_ values are ABI: the libc's <dirent.h> reads the same ones.
records follow each other in the buffer; d_reclen is the size of one record, its name and NUL included, rounded up to 4 bytes.
| #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 KDIRENT_HEADER 7 |
| struct __attribute__ | ( | (packed) | ) |
| uint32_t d_ino |
| uint16_t d_reclen |
| uint8_t d_type |
| char d_name[] |