summaryrefslogtreecommitdiff
path: root/lib9p/9P2000.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lib9p/9P2000.txt')
-rw-r--r--lib9p/9P2000.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib9p/9P2000.txt b/lib9p/9P2000.txt
index 3f1f10a..d90175b 100644
--- a/lib9p/9P2000.txt
+++ b/lib9p/9P2000.txt
@@ -30,7 +30,8 @@ d = "len[4] len*(dat[1])"
# string (u16le `n`, then `n` bytes of UTF-8)
s = "len[2] len*(utf8[1])"
-bitfield qid_type 8
+# QID Type (see qid below)
+bitfield qt 8
7/DIR
6/APPEND
5/EXCL
@@ -46,6 +47,9 @@ bitfield qid_type 8
# Plan 9, in 2003-12.
2/TMP
#1/unused
+
+ # "The name QTFILE, defined to be zero, identifies the value
+ # of the type for a plain file."
FILE=0
# uniQue IDentification - "two files on the same server hierarchy are
@@ -62,7 +66,7 @@ bitfield qid_type 8
#
# - "type" indicates "whether the file is a directory, append-only
# file, etc."; is an instance of the qid_type bitfield.
-qid = "type[qid_type] vers[4] path[8]"
+qid = "type[qt] vers[4] path[8]"
# stat (TODO)
stat = "stat_size[2]"