linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mq_open.3: Add EINVAL error case for invalid name.
@ 2015-02-28  9:04 Duncan Smith
       [not found] ` <20150228090402.GA23727-LZG+QLMPa+1K62Tw8EOquqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Duncan Smith @ 2015-02-28  9:04 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

This behavior is implementation-defined by POSIX.  If the name doesn't
start with a '/', glibc returns EINVAL without attempting the syscall.
---
 man3/mq_open.3 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/man3/mq_open.3 b/man3/mq_open.3
index e5f74d4..243aca0 100644
--- a/man3/mq_open.3
+++ b/man3/mq_open.3
@@ -168,6 +168,11 @@ but a queue with this
 already exists.
 .TP
 .B EINVAL
+.I name
+doesn't follow the format in
+.BR mq_overview (7).
+.TP
+.B EINVAL
 .B O_CREAT
 was specified in
 .IR oflag ,
-- 
2.1.4
--
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

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

* Re: [PATCH] mq_open.3: Add EINVAL error case for invalid name.
       [not found] ` <20150228090402.GA23727-LZG+QLMPa+1K62Tw8EOquqxOck334EZe@public.gmane.org>
@ 2015-03-03  7:27   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-03-03  7:27 UTC (permalink / raw)
  To: Duncan Smith
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 02/28/2015 10:04 AM, Duncan Smith wrote:
> This behavior is implementation-defined by POSIX.  If the name doesn't
> start with a '/', glibc returns EINVAL without attempting the syscall.

Thanks, Duncan. Applied.

Cheers,

Michael


> ---
>  man3/mq_open.3 | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/man3/mq_open.3 b/man3/mq_open.3
> index e5f74d4..243aca0 100644
> --- a/man3/mq_open.3
> +++ b/man3/mq_open.3
> @@ -168,6 +168,11 @@ but a queue with this
>  already exists.
>  .TP
>  .B EINVAL
> +.I name
> +doesn't follow the format in
> +.BR mq_overview (7).
> +.TP
> +.B EINVAL
>  .B O_CREAT
>  was specified in
>  .IR oflag ,
> 


-- 
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

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

end of thread, other threads:[~2015-03-03  7:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-28  9:04 [PATCH] mq_open.3: Add EINVAL error case for invalid name Duncan Smith
     [not found] ` <20150228090402.GA23727-LZG+QLMPa+1K62Tw8EOquqxOck334EZe@public.gmane.org>
2015-03-03  7:27   ` Michael Kerrisk (man-pages)

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).