MentOS
0.8.0
The Mentoring Operating System
|
These macros allows to easily identify file types. More...
Macros | |
#define | S_ISTYPE(mode, mask) (((mode) & S_IFMT) == (mask)) |
Easy macro for checking the type. | |
#define | S_ISSOCK(mode) (S_ISTYPE(mode, S_IFSOCK)) |
Check if a socket. | |
#define | S_ISLNK(mode) (S_ISTYPE(mode, S_IFLNK)) |
Check if a symbolic link. | |
#define | S_ISREG(mode) (S_ISTYPE(mode, S_IFREG)) |
Check if a regular file. | |
#define | S_ISBLK(mode) (S_ISTYPE(mode, S_IFBLK)) |
Check if a block special. | |
#define | S_ISDIR(mode) (S_ISTYPE(mode, S_IFDIR)) |
Check if a directory. | |
#define | S_ISCHR(mode) (S_ISTYPE(mode, S_IFCHR)) |
Check if a char special. | |
#define | S_ISFIFO(mode) (S_ISTYPE(mode, S_IFIFO)) |
Check if a fifo. | |
These macros allows to easily identify file types.