📄 dirent.h
字号:
/* *---------------------------------------------------------------------- * T-Kernel / Standard Extension * * Copyright (C) 2006 by Ken Sakamura. All rights reserved. * T-Kernel / Standard Extension is distributed * under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * * Version: 1.00.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* * dirent.h * */#ifndef __STDFILE_SYS_DIRENT_H__#define __STDFILE_SYS_DIRENT_H__#include "types.h"#ifdef __cplusplusextern "C" {#endif/* * Directory information getdents() */#define MAXNAMLEN 255struct dirent { unsigned int d_fileno; /* File number */ unsigned short d_reclen; /* Record length (number of bytes) */ unsigned char d_type; /* File type */ unsigned char d_namlen; /* Length of character string d_name */ char d_name[MAXNAMLEN + 1]; /* File name */};/* File type */#define DT_UNKNOWN 0 /* Unknown */#define DT_FIFO 1 /* Pipe with name (FIFO) */#define DT_CHR 2 /* Character-type special file */#define DT_DIR 4 /* Directory */#define DT_BLK 6 /* Block-type special file */#define DT_REG 8 /* Normal file */#define DT_LNK 10 /* Symbolic link */#define DT_SOCK 12 /* Socket *//* * System call */extern int getdents( int fildes, struct dirent *buf, size_t nbyte );#ifdef __cplusplus}#endif#endif /* __STDFILE_SYS_DIRENT_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -