kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* why are some stat.h "S_*" perm macros not exported via uapi?
@ 2018-12-31 19:53 Robert P. J. Day
  2019-01-01  0:44 ` valdis.kletnieks
  0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2018-12-31 19:53 UTC (permalink / raw)
  To: Kernel Newbies


  more pedantry ... just noticed this snippet in include/linux/stat.h:

...
  #include <uapi/linux/stat.h>

  #define S_IRWXUGO       (S_IRWXU|S_IRWXG|S_IRWXO)
  #define S_IALLUGO       (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
  #define S_IRUGO         (S_IRUSR|S_IRGRP|S_IROTH)
  #define S_IWUGO         (S_IWUSR|S_IWGRP|S_IWOTH)
  #define S_IXUGO         (S_IXUSR|S_IXGRP|S_IXOTH)
...

given that all of the other S_ perm macros are exported in
include/uapi/linux/stat.h, as in:

  #define S_IRWXU 00700
  #define S_IRUSR 00400
  #define S_IWUSR 00200
  #define S_IXUSR 00100

  #define S_IRWXG 00070
  #define S_IRGRP 00040
  #define S_IWGRP 00020
  #define S_IXGRP 00010

and so on, is there a reason those few combination perm macros are not
exported as well? or is the userspace stat.h so well-defined at this
point that cosmetic changes like this are frowned upon?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-01  9:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-31 19:53 why are some stat.h "S_*" perm macros not exported via uapi? Robert P. J. Day
2019-01-01  0:44 ` valdis.kletnieks
2019-01-01  9:41   ` Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).