diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-01-27 21:38:15 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-01-27 21:38:15 -0700 |
commit | f7b7c04e2ebb24ccae89b77ce76f0b405eb213d1 (patch) | |
tree | 87f743d15943f47bb55f0a675877b9f7f42e4597 /lib9p/idl/2002-9P2000.9p | |
parent | fbc408b36495a60aaf87f5e368a11f57f246d023 (diff) | |
parent | 508730301701ece981149f18bc515797cf2b9990 (diff) |
Merge branch 'lukeshu/misc'
Diffstat (limited to 'lib9p/idl/2002-9P2000.9p')
-rw-r--r-- | lib9p/idl/2002-9P2000.9p | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib9p/idl/2002-9P2000.9p b/lib9p/idl/2002-9P2000.9p index c1cd74b..f0df7d1 100644 --- a/lib9p/idl/2002-9P2000.9p +++ b/lib9p/idl/2002-9P2000.9p @@ -27,8 +27,11 @@ num tag = 2 num fid = 4 "NOFID = ~0" +# data - u32le `n`, then `n` bytes of data +struct d = "len[4] len*(dat[1])" + # data - s32le `n`, then `n` bytes of data -struct d = "len[4,max=s32_max] len*(dat[1])" +struct d_signed = "len[4,max=s32_max] len*(dat[1])" # string - u16le `n`, then `n` bytes of UTF-8, without any nul-bytes struct s = "len[2] len*(utf8[1])" @@ -142,8 +145,8 @@ msg Ropen = "size[4,val=end-&size] typ[1,val=113] tag[tag] qid[qid] iounit[4] msg Tcreate = "size[4,val=end-&size] typ[1,val=114] tag[tag] fid[fid] name[s] perm[dm] mode[o]" msg Rcreate = "size[4,val=end-&size] typ[1,val=115] tag[tag] qid[qid] iounit[4]" msg Tread = "size[4,val=end-&size] typ[1,val=116] tag[tag] fid[fid] offset[8,max=s64_max] count[4,max=s32_max]" -msg Rread = "size[4,val=end-&size] typ[1,val=117] tag[tag] data[d]" # for directories `data` is the sequence "cnt*(entries[stat])" -msg Twrite = "size[4,val=end-&size] typ[1,val=118] tag[tag] fid[fid] offset[8,max=s64_max] data[d]" +msg Rread = "size[4,val=end-&size] typ[1,val=117] tag[tag] data[d_signed]" # for directories `data` is the sequence "cnt*(entries[stat])" +msg Twrite = "size[4,val=end-&size] typ[1,val=118] tag[tag] fid[fid] offset[8,max=s64_max] data[d_signed]" msg Rwrite = "size[4,val=end-&size] typ[1,val=119] tag[tag] count[4]" msg Tclunk = "size[4,val=end-&size] typ[1,val=120] tag[tag] fid[fid]" msg Rclunk = "size[4,val=end-&size] typ[1,val=121] tag[tag]" |