Skip to contentSkip to conversation

mq_open.3: Add EINVAL error case for invalid name.

PATCH In review Duncan Smith 2 participants 2 messages Feb 28, 2015 – Mar 3, 2015 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mq_open.3: Add EINVAL error case for invalid name.

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(+)
man3/mq_open.3 +5 -0
index e5f74d4..243aca0 100644
@@ -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 ,
Signature · 5 lines
2.1.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): 20150228090402.GA23727-LZG+QLMPa+1K62Tw8EOquqxOck334EZe@public.gmane.org

#2 lore raw
Quoted 2 lines · Duncan Smith

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

Quoted 21 lines
---
 man3/mq_open.3 | 5 +++++
 1 file changed, 5 insertions(+)
man3/mq_open.3 +5 -0
index e5f74d4..243aca0 100644
@@ -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 ,
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