added base src
[xv6-db.git] / stat.h
blob604fa9ccbc993a2ca446e2719d74864b537120cb
1 #define T_DIR 1 // Directory
2 #define T_FILE 2 // File
3 #define T_DEV 3 // Special device
5 struct stat {
6 short type; // Type of file
7 int dev; // Device number
8 uint ino; // Inode number on device
9 short nlink; // Number of links to file
10 uint size; // Size of file in bytes