fab5e7c1de
Supporting print long using %l (a bit of cheat) Modify ls to print size using %l We should probably update size in inode too.
12 lines
303 B
C
12 lines
303 B
C
#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
|
|
uint64 size; // Size of file in bytes
|
|
};
|