1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:17:44 +00:00

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
parent 3547d90a0f
commit 6d99345811

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