summaryrefslogtreecommitdiff
path: root/stat.h
blob: 604fa9ccbc993a2ca446e2719d74864b537120cb (plain)
1
2
3
4
5
6
7
8
9
10
11
#define T_DIR  1   // Directory
#define T_FILE 2   // File
#define T_DEV  3   // Special device

struct stat {
  short type;  // Type of file
  int dev;     // Device number
  uint ino;    // Inode number on device
  short nlink; // Number of links to file
  uint size;   // Size of file in bytes
};