summaryrefslogtreecommitdiff
path: root/stat.h
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2012-08-28 12:57:05 -0400
committerRobert Morris <[email protected]>2012-08-28 12:57:05 -0400
commit8960f60b30b69a1f45ffa9d8b2b204714725f1fa (patch)
treeb0c84ed8f05abe6dad0ad5a97eabe58a0d098c26 /stat.h
parent9d59eb015141697da616a4b98ac27cf4269cd780 (diff)
downloadxv6-labs-8960f60b30b69a1f45ffa9d8b2b204714725f1fa.tar.gz
xv6-labs-8960f60b30b69a1f45ffa9d8b2b204714725f1fa.tar.bz2
xv6-labs-8960f60b30b69a1f45ffa9d8b2b204714725f1fa.zip
junk
Diffstat (limited to 'stat.h')
-rw-r--r--stat.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/stat.h b/stat.h
index 604fa9c..8a80933 100644
--- a/stat.h
+++ b/stat.h
@@ -1,11 +1,11 @@
#define T_DIR 1 // Directory
#define T_FILE 2 // File
-#define T_DEV 3 // Special device
+#define T_DEV 3 // Device
struct stat {
short type; // Type of file
- int dev; // Device number
- uint ino; // Inode number on device
+ 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
};