summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2019-07-18 13:45:04 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2019-07-18 13:45:04 +0000
commitedabb16a9a972cb68a6ca4e239035cc8cd40b9db (patch)
tree4dbc8c9dc5d568a20f31638dca45254eaf0ff6cc /lib/libc
parent6fd992f3f30b6a40db56365b9dc4a9595b307dff (diff)
obvious bugfix: if the queue is removed while message transmission is
blocked, POSIX requires EIDRM rather than EINVAL, and that's what our implementation does and what the ERRORS section already says, too
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/msgrcv.24
-rw-r--r--lib/libc/sys/msgsnd.24
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/sys/msgrcv.2 b/lib/libc/sys/msgrcv.2
index d49ed306be2..3474f967604 100644
--- a/lib/libc/sys/msgrcv.2
+++ b/lib/libc/sys/msgrcv.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: msgrcv.2,v 1.17 2019/07/18 13:32:40 schwarze Exp $
+.\" $OpenBSD: msgrcv.2,v 1.18 2019/07/18 13:45:03 schwarze Exp $
.\" $NetBSD: msgrcv.2,v 1.2 1997/03/27 08:20:37 mikel Exp $
.\"
.\" Copyright (c) 1995 Frank van der Linden
@@ -120,7 +120,7 @@ A message of the requested type becomes available on the message queue.
The message queue is removed, in which case \-1 will be returned, and
.Va errno
set to
-.Er EINVAL .
+.Er EIDRM .
.It
A signal is received and caught.
\-1 is returned, and
diff --git a/lib/libc/sys/msgsnd.2 b/lib/libc/sys/msgsnd.2
index 3b676f4ede9..54d710ab666 100644
--- a/lib/libc/sys/msgsnd.2
+++ b/lib/libc/sys/msgsnd.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: msgsnd.2,v 1.20 2019/07/18 12:57:12 schwarze Exp $
+.\" $OpenBSD: msgsnd.2,v 1.21 2019/07/18 13:45:03 schwarze Exp $
.\" $NetBSD: msgsnd.2,v 1.2 1997/03/27 08:20:36 mikel Exp $
.\"
.\" Copyright (c) 1995 Frank van der Linden
@@ -92,7 +92,7 @@ The message will be sent.
The message queue is removed, in which case \-1 will be returned, and
.Va errno
is set to
-.Er EINVAL .
+.Er EIDRM .
.It
The caller catches a signal.
The call returns with