It's actually S_ISCHR in this case

This commit is contained in:
apio 2022-10-27 08:10:35 +02:00
parent cdb1f46b93
commit da8a3de480

View File

@ -14,7 +14,7 @@ struct stat // FIXME: This struct is quite stubbed out.
#define S_ISDIR(mode) (((mode)&0xf) == __VFS_DIRECTORY) #define S_ISDIR(mode) (((mode)&0xf) == __VFS_DIRECTORY)
#define S_ISREG(mode) (((mode)&0xf) == __VFS_FILE) #define S_ISREG(mode) (((mode)&0xf) == __VFS_FILE)
#define S_ISDEV(mode) (((mode)&0xf) == __VFS_DEVICE) #define S_ISCHR(mode) (((mode)&0xf) == __VFS_DEVICE)
#ifdef __cplusplus #ifdef __cplusplus
extern "C" extern "C"