vfs: add S_IFMT mask
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
260ed8a013
commit
f24cd3ef74
3 changed files with 4 additions and 13 deletions
|
|
@ -20,15 +20,6 @@
|
|||
|
||||
#define DIRENT_TYPE(dirent) ((dirent)->flags & 0x7)
|
||||
|
||||
#define INODE_UNKNOWN 0x0
|
||||
#define INODE_REGULAR 0x1
|
||||
#define INODE_DIRECTORY 0x2
|
||||
#define INODE_CHRDEV 0x3
|
||||
#define INODE_BLKDEV 0x4
|
||||
#define INODE_FIFO 0x5
|
||||
#define INODE_SOCKET 0x6
|
||||
#define INODE_SYMLINK 0x7
|
||||
|
||||
typedef struct _inode inode_t;
|
||||
typedef struct _dirent dirent_t;
|
||||
typedef struct _fs fs_t;
|
||||
|
|
|
|||
Loading…
Reference in a new issue