LibC: Add definition for S_IFMT

I was using S_IFMASK, but linux seems to use this
This commit is contained in:
Bananymous 2024-02-14 03:43:31 +02:00
parent 81689b5f02
commit e946b392c9
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ struct stat
#define S_IFLNK ((mode_t)0120000)
#define S_IFSOCK ((mode_t)0140000)
#define S_IFMASK ((mode_t)0170000)
#define S_IFMT S_IFMASK
#define S_ISBLK(mode) ((mode & S_IFMASK) == S_IFBLK)
#define S_ISCHR(mode) ((mode & S_IFMASK) == S_IFCHR)