libc: Add S_ISDEV

This commit is contained in:
apio 2022-10-27 08:09:10 +02:00
parent 06e6429567
commit cdb1f46b93

View File

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