DragonOS/kernel/common/dirent.h

12 lines
319 B
C
Raw Normal View History

2022-05-29 06:36:46 +00:00
#pragma once
2022-07-12 04:01:51 +00:00
#include <common/sys/types.h>
2022-05-29 06:36:46 +00:00
struct dirent
{
ino_t d_ino; // 文件序列号
off_t d_off; // dir偏移量
unsigned short d_reclen; // 目录下的记录数
unsigned char d_type; // entry的类型
char d_name[]; // 文件entry的名字是一个零长度的数组
};