According to POSIX, sys/stat.h shall define a bunch of macro constants such as S_IRUSR. The "R" part obviously means "Readable" and the "USR" part "User" (the owner of the file.) Then what about the S_I part?
- 1The etymology tag question should go to Meta.Jeff Schaller– Jeff Schaller ♦2017-07-13 11:20:05 +00:00Commented Jul 13, 2017 at 11:20
- 2S for "stat", and I for "inode"? It's common to prefix identifiers to avoid confusion, and this part is probably very old ...dirkt– dirkt2017-07-13 11:31:37 +00:00Commented Jul 13, 2017 at 11:31
- To avoid confusion and clashes with other values, since those are #defined constants and they don't have separate namespacesilkkachu– ilkkachu2017-07-13 11:33:21 +00:00Commented Jul 13, 2017 at 11:33
- 1Related question: unix.stackexchange.com/questions/224701/…nodakai– nodakai2017-07-14 06:07:32 +00:00Commented Jul 14, 2017 at 6:07
Add a comment |