分类: LINUX
2011-02-16 09:55:41
今天内容:文件IO(2)
1.文件类型:字符设备文件(c)块设备文件(b) 管道文件(p) 普通文件() 目录文件(d)符号连接文件(l)其他文件()
DT_BLK This is a block device.
DT_CHR This is a character device.
DT_DIR This is a directory.
DT_FIFO This is a named pipe (FIFO).
DT_LNK This is a symbolic link.
DT_REG This is a regular file.
DT_SOCK This is a Unix domain socket.
DT_UNKNOWN The file type is unknown.