小编use*_*120的帖子

/usr/include/dirent.h 中的 DT_WHT 是什么意思?

我正在阅读 dirent.h 的源代码有一个枚举

enum
{
    DT_UNKNOWN = 0,  // unknown type
    #define DT_UNKNOWN DT_UNKNOWN
    DT_FIFO = 1,     // a named pipe, or FIFO
    #define DT_FIFO DT_FIFO
    DT_CHR = 2,     // a character device
    #define DT_CHR DT_CHR
    DT_DIR = 4,     // a directory
    #define DT_DIR DT_DIR
    DT_BLK = 6,     // a block device
    #define DT_BLK DT_BLK
    DT_REG = 8,     // regular file
    #define DT_REG DT_REG
    DT_LNK = 10,    // symbolic link
    #define DT_LNK DT_LNK
    DT_SOCK = 12,   // local domain socket …
Run Code Online (Sandbox Code Playgroud)

linux file-type dirent.h

5
推荐指数
1
解决办法
1887
查看次数

标签 统计

dirent.h ×1

file-type ×1

linux ×1