mirror of
https://github.com/SmallPond/MIT6.828_OS.git
synced 2026-02-08 21:43:23 +08:00
12 lines
294 B
C
12 lines
294 B
C
#define T_DIR 1 // Directory
|
|
#define T_FILE 2 // File
|
|
#define T_DEV 3 // Device
|
|
|
|
struct stat {
|
|
short type; // Type of file
|
|
int dev; // File system's disk device
|
|
uint ino; // Inode number
|
|
short nlink; // Number of links to file
|
|
uint size; // Size of file in bytes
|
|
};
|