mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
🆕 完成了ls的功能
This commit is contained in:
11
kernel/common/dirent.h
Normal file
11
kernel/common/dirent.h
Normal file
@ -0,0 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <common/miniLibc/sys/types.h>
|
||||
struct dirent
|
||||
{
|
||||
ino_t d_ino; // 文件序列号
|
||||
off_t d_off; // dir偏移量
|
||||
unsigned short d_reclen; // 目录下的记录数
|
||||
unsigned char d_type; // entry的类型
|
||||
char d_name[]; // 文件entry的名字(是一个零长度的数组)
|
||||
};
|
Reference in New Issue
Block a user