14 lines
469 B
C
14 lines
469 B
C
|
// TODO: CHECK/REPLACE/UPDATE OLD CODE (this file is based on xv6)
|
||
|
#define T_DIR 1 // Directory
|
||
|
#define T_FILE 2 // File
|
||
|
#define T_DEVICE 3 // Device
|
||
|
|
||
|
struct stat {
|
||
|
int dev; // File system's disk device
|
||
|
uint ino; // Inode number
|
||
|
short type; // Type of file
|
||
|
short nlink; // Number of links to file
|
||
|
int _pad; // Only for compiler cross-compatibility, as alignment bugs are currently a problem
|
||
|
uint64 size; // Size of file in bytes
|
||
|
};
|