9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] [PATCH] 9pcon: add support for Rerror in assert mode
@ 2022-09-09  0:01 Michael Forney
  2022-09-09  4:17 ` Jacob Moody
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Forney @ 2022-09-09  0:01 UTC (permalink / raw)
  To: 9front


This is useful for checking error behavior of 9p servers.
---
diff ffb48be969338833a69e576e7d62353bbd831226 4ebd0d144227692b8dbd4fe4490040f9c2904f7a
--- a/sys/src/cmd/aux/9pcon.c	Thu Sep  8 13:20:11 2022
+++ b/sys/src/cmd/aux/9pcon.c	Thu Sep  8 16:57:45 2022
@@ -144,6 +144,13 @@
 	return strtoqid(argv[0], &f->aqid);
 }
 
+char *
+rerror(Fcall *f, int, char **argv)
+{
+	f->ename = argv[0];
+	return nil;
+}
+
 char*
 tflush(Fcall *f, int, char **argv)
 {
@@ -435,6 +442,8 @@
 
 	"Tauth", Tauth, 3, "afid uname aname", tauth,
 	"Rauth", Rauth, 1, "aqid", rauth,
+
+	"Rerror", Rerror, 1, "ename", rerror,
 
 	"Tflush", Tflush, 1, "oldtag", tflush,
 	"Rflush", Rflush, 0, "", nop,

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-09  4:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-09  0:01 [9front] [PATCH] 9pcon: add support for Rerror in assert mode Michael Forney
2022-09-09  4:17 ` Jacob Moody

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).