9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Jacob Moody <moody@mail.posixcafe.org>
To: 9front@9front.org
Subject: Re: [9front] [PATCH] 9pcon: add support for Rerror in assert mode
Date: Thu, 8 Sep 2022 22:17:09 -0600	[thread overview]
Message-ID: <3c076be7-5fd8-f05e-9532-e6828090009a@posixcafe.org> (raw)
In-Reply-To: <20220909000106.12391-1-mforney@mforney.org>

On 9/8/22 18:01, Michael Forney wrote:
> 
> 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,


Thanks! Committed.

      reply	other threads:[~2022-09-09  4:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-09  0:01 Michael Forney
2022-09-09  4:17 ` Jacob Moody [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3c076be7-5fd8-f05e-9532-e6828090009a@posixcafe.org \
    --to=moody@mail.posixcafe.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).