summaryrefslogtreecommitdiff
path: root/kernel/stat.h
blob: a498321ce8e4b35049861fb0367878c2a51aa794 (plain)
1
2
3
4
5
6
7
8
9
10
11
#define T_DIR     1   // Directory
#define T_FILE    2   // File
#define T_DEVICE  3   // Device

struct stat {
  short type;  // Type of file
  int dev;     // File system's disk device
  uint ino;    // Inode number
  short nlink; // Number of links to file
  uint size;   // Size of file in bytes
};