MentOS
0.8.0
The Mentoring Operating System
|
These constants allow to control access permission for files. More...
Macros | |
#define | S_ISUID 0x0800 |
Set user id on execution. | |
#define | S_ISGID 0x0400 |
Set group id on execution. | |
#define | S_ISVTX 0x0200 |
Save swapped text even after use (Sticky Bit) | |
#define | S_IRWXU 0x01C0 |
rwx---— : User can read/write/execute | |
#define | S_IRUSR 0x0100 |
r-----— : User can read | |
#define | S_IWUSR 0x0080 |
-w----— : User can write | |
#define | S_IXUSR 0x0040 |
–x---— : User can execute | |
#define | S_IRWXG 0x0038 |
—rwx— : Group can read/write/execute | |
#define | S_IRGRP 0x0020 |
—r--— : Group can read | |
#define | S_IWGRP 0x0010 |
-—w-— : Group can write | |
#define | S_IXGRP 0x0008 |
--—x— : Group can execute | |
#define | S_IRWXO 0x0007 |
---—rwx : Others can read/write/execute | |
#define | S_IROTH 0x0004 |
---—r– : Others can read | |
#define | S_IWOTH 0x0002 |
----—w- : Others can write | |
#define | S_IXOTH 0x0001 |
-----—x : Others can execute | |
These constants allow to control access permission for files.