[][src]Module nc::linux_fs_types

Constants

DT_BLK
DT_CHR
DT_DIR
DT_FIFO
DT_LNK
DT_MAX

16

DT_REG
DT_SOCK
DT_UNKNOWN

these are defined by POSIX and also present in glibc's dirent.h

DT_WHT
FT_BLKDEV
FT_CHRDEV
FT_DIR
FT_FIFO
FT_MAX
FT_REG_FILE
FT_SOCK
FT_SYMLINK
FT_UNKNOWN

fs on-disk file types. Only the low 3 bits are used for the POSIX file types. Other bits are reserved for fs private use. These definitions are shared and used by multiple filesystems, and MUST NOT change under any circumstances.

S_DT_MASK
S_DT_SHIFT

This is a header for the common implementation of dirent to fs on-disk file type conversion. Although the fs on-disk bits are specific to every file system, in practice, many file systems use the exact same on-disk format to describe the lower 3 file type bits that represent the 7 POSIX file types.

Functions

S_DT