2009-05-31 00:26:10 +00:00
|
|
|
#define T_DIR 1 // Directory
|
|
|
|
#define T_FILE 2 // File
|
|
|
|
#define T_DEV 3 // Special device
|
|
|
|
|
2006-08-12 04:33:50 +00:00
|
|
|
struct stat {
|
2009-05-31 00:26:10 +00:00
|
|
|
short type; // Type of file
|
2006-09-07 14:12:30 +00:00
|
|
|
int dev; // Device number
|
|
|
|
uint ino; // Inode number on device
|
|
|
|
short nlink; // Number of links to file
|
|
|
|
uint size; // Size of file in bytes
|
2006-08-12 04:33:50 +00:00
|
|
|
};
|