dirent d_type类型
来源:互联网 发布:建设银行纸黄金软件 编辑:程序博客网 时间:2024/05/19 17:09
dirent d_type类型
struct dirent
{
#ifndef __USE_FILE_OFFSET64
__ino_t d_ino;
__off_t d_off;
#else
__ino64_t d_ino;
__off64_t d_off;
#endif
unsigned short int d_reclen;
unsigned char d_type;
char d_name[256]; /* We must not include limits.h! */
};
注意其中的d_type字段。
/* File types for `d_type'. */
enum
{
DT_UNKNOWN = 0,
# define DT_UNKNOWN DT_UNKNOWN
DT_FIFO = 1,
# define DT_FIFO DT_FIFO
DT_CHR = 2,
# define DT_CHR DT_CHR
DT_DIR = 4,
# define DT_DIR DT_DIR
DT_BLK = 6,
# define DT_BLK DT_BLK
DT_REG = 8,
# define DT_REG DT_REG
DT_LNK = 10,
# define DT_LNK DT_LNK
DT_SOCK = 12,
# define DT_SOCK DT_SOCK
DT_WHT = 14
# define DT_WHT DT_WHT
};
{
#ifndef __USE_FILE_OFFSET64
__ino_t d_ino;
__off_t d_off;
#else
__ino64_t d_ino;
__off64_t d_off;
#endif
unsigned short int d_reclen;
unsigned char d_type;
char d_name[256]; /* We must not include limits.h! */
};
注意其中的d_type字段。
/* File types for `d_type'. */
enum
{
DT_UNKNOWN = 0,
# define DT_UNKNOWN DT_UNKNOWN
DT_FIFO = 1,
# define DT_FIFO DT_FIFO
DT_CHR = 2,
# define DT_CHR DT_CHR
DT_DIR = 4,
# define DT_DIR DT_DIR
DT_BLK = 6,
# define DT_BLK DT_BLK
DT_REG = 8,
# define DT_REG DT_REG
DT_LNK = 10,
# define DT_LNK DT_LNK
DT_SOCK = 12,
# define DT_SOCK DT_SOCK
DT_WHT = 14
# define DT_WHT DT_WHT
};
- dirent d_type类型
- AIX:struct dirent d_type
- dirent结构体中d_type
- 用dirent的d_type获取目录下的文件类型失败?!
- linux xfs文件系统 无法用readdir获取 dirent文件类型d_type
- 关于readdir返回值中struct dirent.d_type的取值问题
- linux xfs文件系统无法用readdir获取dirent文件类型d_type则用stat获取暨stat函数讲解
- dirent
- dirent
- struct dirent
- struct dirent
- dirent.h
- dirent.h
- dirent.h
- struct dirent成员
- #include <dirent.h>作用
- dirent 结构体
- dirent / opendir(), readdir()
- ios代码行数统计
- 有关CMOS RAM的分析及读取
- SQL Server 2005 int与datetime数据类型的存储结构说明
- HTTP method GET is not supported by this URL 问题解决
- python 中两个list是否有相同元素的办法?
- dirent d_type类型
- C#多线程学习(一) 多线程的相关概念
- 页面跳转方法总结
- 认真想想,自己要的到底是什么
- 什么是宿便?
- nginx强制使用https访问(http跳转到https)
- ThreadPoolExecutor运转机制详解
- ios UITapGestureRecognizer 单指单击、单指多击、多指单击、多指多击事件操作
- GNU screen配置参数及快捷键