Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (s and S) semget(2)
[EEXIST] A semaphore set ID already exists for the key parameter, but ((semflg &
IPC_CREAT) && (semflg & IPC_EXCL)) is not equal to 0 (zero).
[EINVAL] One of the following conditions is true:
• A semaphore set ID already exists for the key parameter, but the number
of semaphores in the set is less than nsems and nsems is not equal to 0
(zero).
• A semaphore set ID does not already exist, but the value of the nsems
parameter is either less than or equal to 0 (zero) or greater than the
system-defined limit.
[ENOENT] A semaphore set ID does not exist for the key parameter, and (semflg &
IPC_CREAT) is equal to 0 (zero).
[ENOSPC] An attempt to create a new semaphore set ID exceeded the processor limit on the
number of allowed semaphores.
[ENOTOSS] The calling process is not an OSS process. The requested operation is not sup-
ported from the Guardian environment.
RELATED INFORMATION
Commands: ipcrm(1), ipcs(1).
Functions: exec(2), _exit(2), fork(2), ftok(3), semctl(2), semop(2), tdm_execve(2),
tdm_execvep(2), tdm_fork(2), tdm_spawn(2), tdm_spawnp(2).
STANDARDS CONFORMANCE
The following are HP extensions to the XPG4 Version 2 specification:
• The errno value [ENOTOSS] can be returned.
527186-003 Hewlett-Packard Company 7−17