From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Arjun Shankar <arjun.is-xDe9EDckjEKzQB+pC5nmwQ@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Zack Weinberg <zackw-VmQCmMdMyN0AvxtiuMwx3w@public.gmane.org>,
Joseph Myers <joseph-qD8j1LwMmJjtCj0u4l0SBw@public.gmane.org>,
Florian Weimer <fweimer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [PATCH] ptsname.3: ERRORS: remove EINVAL
Date: Fri, 16 Jun 2017 09:46:15 +0200 [thread overview]
Message-ID: <9ce65877-92c7-9a57-8126-c856b3e6e342@gmail.com> (raw)
In-Reply-To: <20170608125218.GA80475-dUzzAJbwTVHDVYEGADRjmA@public.gmane.org>
On 06/08/2017 02:52 PM, Arjun Shankar wrote:
> The glibc implementation of 'ptsname_r' no longer checks if it has
> been called with a NULL 'buf' [1], and therefore cannot return an
> EINVAL error.
>
> [1] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=8f0a947
> (prior to the release of glibc 2.26)
>
> Signed-off-by: Arjun Shankar <arjun.is-xDe9EDckjEKzQB+pC5nmwQ@public.gmane.org>
> ---
> man3/ptsname.3 | 6 ------
> 1 file changed, 6 deletions(-)
>
> diff --git a/man3/ptsname.3 b/man3/ptsname.3
> index 90133fe..fd98b6b 100644
> --- a/man3/ptsname.3
> +++ b/man3/ptsname.3
> @@ -58,12 +58,6 @@ is set to indicate the error.
> .\" result -- MTK, Dec 04
> .SH ERRORS
> .TP
> -.B EINVAL
> -.RB ( ptsname_r ()
> -only)
> -.I buf
> -is NULL.
> -.TP
> .B ENOTTY
> .I fd
> does not refer to a pseudoterminal master device.
Thanks, Arjun. I applied a slightly different patch:
diff --git a/man3/ptsname.3 b/man3/ptsname.3
index 0ce88a1..05f4958 100644
--- a/man3/ptsname.3
+++ b/man3/ptsname.3
@@ -76,6 +76,9 @@ is set to indicate the error.
only)
.I buf
is NULL.
+(This error is returned only for
+.\" glibc commit 8f0a947cf55f3b0c4ebdf06953c57eff67a22fa9
+glibc 2.25 and earlier.)
.TP
.B ENOTTY
.I fd
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2017-06-16 7:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-08 12:52 [PATCH] ptsname.3: ERRORS: remove EINVAL Arjun Shankar
[not found] ` <20170608125218.GA80475-dUzzAJbwTVHDVYEGADRjmA@public.gmane.org>
2017-06-16 7:46 ` Michael Kerrisk (man-pages) [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=9ce65877-92c7-9a57-8126-c856b3e6e342@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=arjun.is-xDe9EDckjEKzQB+pC5nmwQ@public.gmane.org \
--cc=fweimer-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=joseph-qD8j1LwMmJjtCj0u4l0SBw@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=zackw-VmQCmMdMyN0AvxtiuMwx3w@public.gmane.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