Skip to content
Permalink
Browse files
Remove obsolete synonyms for access bits
Replace S_IREAD, S_IWRITE and S_IEXEC with more modern equivalents.
Fixes building for Android.
  • Loading branch information
fornwall authored and Sergey Vojtovich committed Jul 6, 2017
1 parent 0ff62ad commit 7e6a600
Showing 1 changed file with 3 additions and 3 deletions.
@@ -35,9 +35,9 @@ extern "C" {
#define MY_S_ISUID S_ISUID /* set user id on execution */
#define MY_S_ISGID S_ISGID /* set group id on execution */
#define MY_S_ISVTX S_ISVTX /* save swapped text even after use */
#define MY_S_IREAD S_IREAD /* read permission, owner */
#define MY_S_IWRITE S_IWRITE /* write permission, owner */
#define MY_S_IEXEC S_IEXEC /* execute/search permission, owner */
#define MY_S_IREAD S_IRUSR /* read permission, owner */
#define MY_S_IWRITE S_IWUSR /* write permission, owner */
#define MY_S_IEXEC S_IXUSR /* execute/search permission, owner */

#define MY_S_ISDIR(m) (((m) & MY_S_IFMT) == MY_S_IFDIR)
#define MY_S_ISCHR(m) (((m) & MY_S_IFMT) == MY_S_IFCHR)

0 comments on commit 7e6a600

Please sign in to comment.