#include <sys/stat.h>
Go to the source code of this file.
Macros | |
#define | __S_ISTYPE(mode, mask) (((mode) & S_IFMT) == (mask)) |
#define | S_ISBLK(mode) __S_ISTYPE((mode), S_IFBLK) |
#define | S_ISCHR(mode) __S_ISTYPE((mode), S_IFCHR) |
#define | S_ISDIR(mode) __S_ISTYPE((mode), S_IFDIR) |
#define | S_ISREG(mode) __S_ISTYPE((mode), S_IFREG) |
#define __S_ISTYPE | ( | mode, | |
mask | |||
) | (((mode) & S_IFMT) == (mask)) |
#define S_ISBLK | ( | mode | ) | __S_ISTYPE((mode), S_IFBLK) |
#define S_ISCHR | ( | mode | ) | __S_ISTYPE((mode), S_IFCHR) |
#define S_ISDIR | ( | mode | ) | __S_ISTYPE((mode), S_IFDIR) |
#define S_ISREG | ( | mode | ) | __S_ISTYPE((mode), S_IFREG) |