dirent.h

来自「klibc精简化的c程序库」· C头文件 代码 · 共 33 行

H
33
字号
/* * sys/dirent.h */#ifndef _SYS_DIRENT_H#define _SYS_DIRENT_H#include <stdint.h>/* The kernel calls this struct dirent64 */struct dirent {	uint64_t	d_ino;	int64_t		d_off;	unsigned short	d_reclen;	unsigned char	d_type;	char		d_name[256];};/* File types to use for d_type */#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__extern int getdents(unsigned int, struct dirent *, unsigned int);#endif				/* _SYS_DIRENT_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?