Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.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 identifier exists for the key parameter but operation permis-
sion, which is specified by the low-order nine bits of the msgflg parameter, is not
granted.
[EEXIST] A message queue identifier exists for the key parameter, and both IPC_CREAT
and IPC_EXCL are set.
[EFAULT] The msqid_ds structure associated with the message queue identifier 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 identifier asso-
ciated with the key parameter has been removed from the system.
[EMSGQNOTRUNNING]
The message queue server associated with the message queue identifier is not
running.
[ENOENT] A message queue identifier does not exist for the key parameter and the
IPC_CREAT value is not set.
[ENOMEM] Memory allocation failed and one possibility is that the amount of memory con-
sumed by the message gueues exceeds 16GB.
[ENOSPC] A message queue identifier cannot be created because the system-imposed limit
on the maximum number of allowed message queue identifiers 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 specification:
The errno values [EFAULT], [EINVAL], [EMSGQNOTRUNNING], [ENOMEM], and
[ENOTOSS] can be returned.
464 Hewlett-Packard Company 527186-023