From a9acf65bc8e3439d7fd2c927b2a920f120cb3a47 Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Wed, 25 Sep 2024 15:35:53 -0600 Subject: wip --- 9p/9P2000.e.txt | 7 ++++++- 9p/srv.c | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/9p/9P2000.e.txt b/9p/9P2000.e.txt index f926dc0..22f056e 100644 --- a/9p/9P2000.e.txt +++ b/9p/9P2000.e.txt @@ -8,4 +8,9 @@ # https://github.com/cloudozer/ling/blob/master/doc/9p2000e.md version "9P2000.e" -# TODO +150/Tsession = "key[8]" +151/Rsession = "" +152/Tsread = "fid[4] nwname[2] nwname*(wname[s])" +153/Rsread = "data[d]" +154/Tswrite = "Tswrite tag[2] fid[4] nwname[2] nwname*(wname[s]) data[d]" +155/Rswrite = "count[4]" diff --git a/9p/srv.c b/9p/srv.c index 652a76b..59326c9 100644 --- a/9p/srv.c +++ b/9p/srv.c @@ -189,3 +189,6 @@ void marshal_error(struct p9_ctx *ctx, uint16_t tag, uint8_t *net) { host.ename.len = ctx->max_msg_size - overhead; p9_marshal(ctx, tag, host, net); } + +ERANGE for reply too large +EPROTONOSUPPORT for version errors -- cgit v1.2.3-2-g168b