ptsname.3: ERRORS: remove EINVAL
PATCH 1/1 ptsname.3: ERRORS: remove EINVAL
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)
--- man3/ptsname.3 | 6 ------ 1 file changed, 6 deletions(-)
man3/ptsname.3 +0 -6
@@ -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.
Signature · 6 lines
2.9.4 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 19 lines · Arjun Shankar
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 <[email protected]>--- man3/ptsname.3 | 6 ------ 1 file changed, 6 deletions(-)man3/ptsname.3 +0
-0@@ -58,12 +58,6 @@ is set to indicate the error. .\" result -- MTK, Dec 04 .SH ERRORS
man3/ptsname.3 is set to indicate the error. · line 63
Quoted 10 lines
man3/ptsname.3 +0
-6.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:
man3/ptsname.3 +3 -0
@@ -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
Signature · 7 lines
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 [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html