xv6-65oo2/kernel/stat.h

12 lines
303 B
C
Raw Normal View History

2019-06-13 14:29:27 +00:00
#define T_DIR 1 // Directory
#define T_FILE 2 // File
#define T_DEVICE 3 // Device
2006-08-12 04:33:50 +00:00
struct stat {
short type; // Type of file
2012-08-28 16:57:05 +00:00
int dev; // File system's disk device
uint ino; // Inode number
2006-09-07 14:12:30 +00:00
short nlink; // Number of links to file
uint size; // Size of file in bytes
2006-08-12 04:33:50 +00:00
};