64 #ifndef __INCLUDE_SYS_STAT_H 65 #define __INCLUDE_SYS_STAT_H 71 #include <sys/types.h> 83 #define S_IXOTH 0000001 84 #define S_IWOTH 0000002 85 #define S_IROTH 0000004 86 #define S_IRWXO 0000007 88 #define S_IXGRP 0000010 89 #define S_IWGRP 0000020 90 #define S_IRGRP 0000040 91 #define S_IRWXG 0000070 93 #define S_IXUSR 0000100 94 #define S_IWUSR 0000200 95 #define S_IRUSR 0000400 96 #define S_IRWXU 0000700 98 #define S_ISVTX 0001000 99 #define S_ISGID 0002000 100 #define S_ISUID 0004000 102 #define S_IFIFO 0010000 103 #define S_IFCHR 0020000 104 #define S_IFDIR 0040000 105 #define S_IFBLK 0060000 106 #define S_IFREG 0100000 107 #define S_IFLNK 0120000 108 #define S_IFSOCK 0140000 109 #define S_IFMQ 0150000 110 #define S_IFSEM 0160000 111 #define S_IFSHM 0170000 112 #define S_IFMT 0170000 116 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) 117 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 118 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 119 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 120 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 121 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 122 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) 123 #define S_ISMQ(m) (((m) & S_IFMT) == S_IFMQ) 124 #define S_ISSSEM(m) (((m) & S_IFMT) == S_IFSEM) 125 #define S_ISSHM(m) (((m) & S_IFMT) == S_IFSHM) 150 #if defined(__cplusplus) 151 #define EXTERN extern "C" 154 #define EXTERN extern 163 int mkdir(FAR
const char *pathname, mode_t mode);
170 int mkfifo(FAR
const char *pathname, mode_t mode);
177 int stat(
const char *path, FAR
struct stat *buf);
182 int fstat(
int fd, FAR
struct stat *buf);
187 #if defined(__cplusplus) int mkdir(FAR const char *pathname, mode_t mode)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int stat(const char *path, FAR struct stat *buf)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int mkfifo(FAR const char *pathname, mode_t mode)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)