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 field is greater than the value of
the msgsz parameter and the MSG_NOERROR flag is used in the msgflg param-
eter.
[EACCES] The calling process does not have read permission for the specified message
queue.
[EFAULT] The msqid_ds structure associated with the message queue identifier cannot be
found.
[EIDRM] The message queue identified 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 identifier.
• 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 identifier is not
running.
[ENOMSG] The queue does not contain a message of the requested type and the
IPC_NOWAIT flag is used in the msgflg 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 specification:
• The errno values [EFAULT], [EMSGQNOTRUNNING], and [ENOTOSS] can be
returned.
527186-003 Hewlett-Packard Company 4−41