S_IFMT中的S_I前缀代表什么

时间:2016-08-06 08:49:11

标签: c posix

这是_s_ifmt.h头文件

#ifndef S_IFMT
/* File type */
#define S_IFMT      0170000     /* [XSI] type of file mask */
#define S_IFIFO     0010000     /* [XSI] named pipe (fifo) */
#define S_IFCHR     0020000     /* [XSI] character special */
#define S_IFDIR     0040000     /* [XSI] directory */
#define S_IFBLK     0060000     /* [XSI] block special */
#define S_IFREG     0100000     /* [XSI] regular */
#define S_IFLNK     0120000     /* [XSI] symbolic link */
#define S_IFSOCK    0140000     /* [XSI] socket */
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
#define S_IFWHT     0160000     /* OBSOLETE: whiteout */
#endif

那么前缀S_I究竟代表什么?

0 个答案:

没有答案