]> Savannah Git Hosting - gnulib.git/commitdiff
sys_stat: update comments for S_IRWXUGO, S_IXUGO
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Oct 2020 23:52:23 +0000 (16:52 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 26 Oct 2020 23:52:54 +0000 (16:52 -0700)
* lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
Perhaps these macros should be removed, as they’re not in either
POSIX or GNU.  They could be moved to stat-macros.h, which would
be cleaner in some sense.

ChangeLog
lib/sys_stat.in.h

index bb838bc8836b6208f6e0a895f551b14716a88e10..4eb5bcb1dc1e499b05b3a67b80c545c6dd1bd1b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
+
+       sys_stat: update comments for S_IRWXUGO, S_IXUGO
+       * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
+       Perhaps these macros should be removed, as they’re not in either
+       POSIX or GNU.  They could be moved to stat-macros.h, which would
+       be cleaner in some sense.
+
 2020-10-25  Bruno Haible  <bruno@clisp.org>
 
        ssfmalloc tests: Small tweaks.
index 2d12610748b9a3e84faea8e4e98bcba090958a93..2578b48df61f99e3169f57aa2e9f86acf9212b51 100644 (file)
@@ -375,11 +375,11 @@ struct stat
 # define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)
 #endif
 
-/* S_IXUGO is a common extension to POSIX.  */
+/* Although S_IXUGO and S_IRWXUGO are not specified by POSIX and are
+   not implemented in GNU/Linux, some Gnulib-using apps use the macros.  */
 #if !S_IXUGO
 # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
 #endif
-
 #ifndef S_IRWXUGO
 # define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO)
 #endif