2009-05-31 02:26:10 +02:00
|
|
|
#define T_DIR 1 // Directory
|
|
|
|
#define T_FILE 2 // File
|
2012-08-28 18:57:05 +02:00
|
|
|
#define T_DEV 3 // Device
|
2009-05-31 02:26:10 +02:00
|
|
|
|
2006-08-12 06:33:50 +02:00
|
|
|
struct stat {
|
2009-05-31 02:26:10 +02:00
|
|
|
short type; // Type of file
|
2012-08-28 18:57:05 +02:00
|
|
|
int dev; // File system's disk device
|
|
|
|
uint ino; // Inode number
|
2006-09-07 16:12:30 +02:00
|
|
|
short nlink; // Number of links to file
|
|
|
|
uint size; // Size of file in bytes
|
2006-08-12 06:33:50 +02:00
|
|
|
};
|