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

msgget(2) OSS System Calls Reference Manual
ERRORS
If any of the following conditions occurs, the msgget() function sets errno to the value that
corresponds to the condition.
[EACCES] A message queue identier exists for the key parameter but operation permis-
sion, which is specied by the low-order nine bits of the msgg parameter, is not
granted.
[EEXIST] A message queue identier exists for the key parameter, and both IPC_CREAT
and IPC_EXCL are set.
[EFAULT] The msqid_ds structure associated with the message queue identier cannot be
found.
[EINVAL] One of the following conditions exists:
All processes for the relevant message server have failed.
The message queue corresponding to the message queue identi
er asso-
ciated with the key parameter has been removed from the system.
[EMSGQNOTRUNNING]
The message queue server associated with the message queue identier is not
running.
[ENOENT] A message queue identier does not exist for the key parameter and the
IPC_CREAT value is not set.
[ENOSPC] A message queue identier cannot be created because the system-imposed limit
on the maximum number of allowed message queue identiers would be
exceeded.
[ENOTOSS] The calling process is not an OSS process. The requested operation cannot be
performed from the Guardian environment.
RELATED INFORMATION
Commands: ipcrm(1), ipcs(1).
Functions: ftok(3), msgctl(2), msgrcv(2), msgsnd(2).
STANDARDS CONFORMANCE
The following are HP extensions to the XPG4 Version 2 specication:
The errno values [EFAULT], [EINVAL], [EMSGQNOTRUNNING], and [ENOTOSS]
can be returned.
438 Hewlett-Packard Company 527186-003