2 #if !defined(S_ISDIR) && defined(S_IFDIR)
3 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
5 #if !defined(S_ISREG) && defined(S_IFREG)
6 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
8 #if !defined(S_ISSOCK) && defined(S_IFSOCK)
9 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
22 #define S_ISXXX(m) ((m) & (S_IXUSR | S_IXGRP | S_IXOTH))