LibC: Add S_I{READ,WRITE,EXEC} macro aliases for BSD compatibility

These map as follows:

S_IREAD -> S_IRUSR
S_IWRITE -> S_IWUSR
S_IEXEC -> S_IXUSR
This commit is contained in:
Andreas Kling 2021-03-27 18:00:41 +01:00
commit 6d99345811
Notes: sideshowbarker 2024-07-18 21:01:40 +09:00

View file

@ -71,6 +71,9 @@ __BEGIN_DECLS
#define S_IRUSR 0400
#define S_IWUSR 0200
#define S_IXUSR 0100
#define S_IREAD S_IRUSR
#define S_IWRITE S_IWUSR
#define S_IEXEC S_IXUSR
#define S_IRGRP 0040
#define S_IWGRP 0020
#define S_IXGRP 0010