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

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