diff --git a/reference/sem/functions/sem-acquire.xml b/reference/sem/functions/sem-acquire.xml index e73672cb83..fb3d6cbbf5 100644 --- a/reference/sem/functions/sem-acquire.xml +++ b/reference/sem/functions/sem-acquire.xml @@ -1,5 +1,5 @@ - + @@ -12,9 +12,6 @@ boolsem_acquire intsem_identifier - - Returns: &true; on success, &false; on error. - sem_acquire blocks (if necessary) until the semaphore can be acquired. A process attempting to acquire a @@ -22,6 +19,9 @@ if acquiring the semaphore would cause its max_acquire value to be exceeded. + + &return.success; + After processing a request, any semaphores acquired by the process but not explicitly released will be released automatically diff --git a/reference/sem/functions/sem-get.xml b/reference/sem/functions/sem-get.xml index 1da83c9e6f..0c93d12e46 100644 --- a/reference/sem/functions/sem-get.xml +++ b/reference/sem/functions/sem-get.xml @@ -1,5 +1,5 @@ - + @@ -14,10 +14,6 @@ intmax_acquire intperm - - Returns: A positive semaphore identifier on success, or &false; on - error. - sem_get returns an id that can be used to access the System V semaphore with the given key. The semaphore @@ -27,6 +23,10 @@ (defaults to 1). Actually this value is set only if the process finds it is the only process currently attached to the semaphore. + + Returns: A positive semaphore identifier on success, or &false; on + error. + A second call to sem_get for the same key will return a different semaphore identifier, but both diff --git a/reference/sem/functions/sem-release.xml b/reference/sem/functions/sem-release.xml index c19b47946e..d9b1e347bf 100644 --- a/reference/sem/functions/sem-release.xml +++ b/reference/sem/functions/sem-release.xml @@ -1,5 +1,5 @@ - + @@ -12,20 +12,21 @@ boolsem_release intsem_identifier - - Returns: &true; on success, &false; on error. - sem_release releases the semaphore if it is currently acquired by the calling process, otherwise a warning is generated. + + &return.success; + After releasing the semaphore, sem_acquire may be called to re-acquire it. - See also: sem_get and + See also + sem_get and sem_acquire. diff --git a/reference/sem/functions/sem-remove.xml b/reference/sem/functions/sem-remove.xml index d1d9e60c1e..76b81907b4 100644 --- a/reference/sem/functions/sem-remove.xml +++ b/reference/sem/functions/sem-remove.xml @@ -1,5 +1,5 @@ - + @@ -12,16 +12,15 @@ boolsem_remove intsem_identifier - - Returns: &true; on success, &false; - on error. - sem_remove removes the semaphore sem_identifier if it has been created by sem_get, otherwise generates a warning. + + &return.success; + After removing the semaphore, it is no more accessible. diff --git a/reference/sem/functions/shm-attach.xml b/reference/sem/functions/shm-attach.xml index d3e428bf79..9143aa0b20 100644 --- a/reference/sem/functions/shm-attach.xml +++ b/reference/sem/functions/shm-attach.xml @@ -1,5 +1,5 @@ - + @@ -17,10 +17,10 @@ shm_attach returns an id that that can be used to access the System V shared memory with the given key, the - first call creates the shared memory segment with mem_size - (default: sysvshm.init_mem in the configuration file, otherwise - 10000 bytes) and the optional perm-bits (default: 0666). + first call creates the shared memory segment with memsize + (default: sysvshm.init_mem in the &php.ini, otherwise + 10000 bytes) and the optional perm-bits perm + (default: 0666). A second call to shm_attach for the same