Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (s and S) shmat(2)
[EINVAL] One of the following is true:
• The shmid parameter does not specify a valid shared memory identifier.
• The shmaddr parameter is not a null pointer and the value of (shmaddr -
((ptrdiff_t)shmaddr % SHMLBA)) is an invalid address for attaching
shared memory.
• The shmaddr parameter is not a null pointer, (shmflag & SHM_RND)is
0 (zero), and the value of shmaddr is an invalid address for attaching
shared memory.
[EMFILE] An attempt to attach a shared memory segment exceeded the maximum number
of attached segments allowed for any one process.
[ENOMEM] One of the following is true:
• There was not enough data space available to attach the shared memory
segment and allocate the associated low-level data structures.
• The shared memory segment has reached its maximum use count (the
shm_nattch field already has its maximum value).
[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), shmctl(2), shmdt(2), shmget(2), tdm_execve(2),
tdm_execvep(2), tdm_fork(2), tdm_spawn(2), tdm_spawnp(2).
STANDARDS CONFORMANCE
The SHMLBA constant is used for a nontraditional value.
The following are HP extensions to the XPG4 Version 2 specification:
• The errno value [ENOTOSS] can be returned.
527186-003 Hewlett-Packard Company 7−47