Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (k - m) msgrcv(2)
ERRORS
If any of the following conditions occurs, the msgrcv() function sets errno to the value that
corresponds to the condition.
[E2BIG] The number of bytes to be received in the mtext eld is greater than the value of
the msgsz parameter and the MSG_NOERROR ag is used in the msgg param-
eter.
[EACCES] The calling process does not have read permission for the specied message
queue.
[EFAULT] The msqid_ds structure associated with the message queue identier cannot be
found.
[EIDRM] The message queue identied by the msqid parameter has been removed from
the system.
[EINTR] The operation was interrupted by a signal.
[EINVAL] One of the following conditions exists:
The msqid parameter does not specify a valid message queue identier.
The value of the msgsz parameter is less than 0 (zero).
All processes for the relevant message server have failed.
[EMSGQNOTRUNNING]
The message queue server associated with the message queue identier is not
running.
[ENOMSG] The queue does not contain a message of the requested type and the
IPC_NOWAIT ag is used in the msgg parameter.
[ENOTOSS] The calling process is not an OSS process. The requested operation cannot be
performed from the Guardian environment.
RELATED INFORMATION
Functions: msgctl(2), msgget(2), msgsnd(2), sigaction(2).
STANDARDS CONFORMANCE
The following are HP extensions to the XPG4 Version 2 specication:
The errno values [EFAULT], [EMSGQNOTRUNNING], and [ENOTOSS] can be
returned.
527186-003 Hewlett-Packard Company 441