문제

I am reading the source code of the dirent.h there's a enum

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
    #define DT_SOCK DT_SOCK
    DT_WHT = 14     // ?
    #define DT_WHT DT_WHT
};

SO what is DT_WHT? I've searched the Single Unix Specification Version 4, and got nothing. My distro is CentOS 6.2 x64 Linux Kernel Version is: 2.6.32-220.x16.x86_64.

Thank you very much!

도움이 되었습니까?

해결책

I googled readdir DT_WHT and found this thread which explains that it's a "whiteout" from BSD.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top