Lines Matching refs:semid
166 semop(sem_ptr->semid, sop, opcount);
201 int semid; in PHP_FUNCTION() local
216 semid = semget(key, 3, perm|IPC_CREAT); in PHP_FUNCTION()
217 if (semid == -1) { in PHP_FUNCTION()
248 while (semop(semid, sop, 3) == -1) { in PHP_FUNCTION()
256 count = semctl(semid, SYSVSEM_USAGE, GETVAL, NULL); in PHP_FUNCTION()
268 if (semctl(semid, SYSVSEM_SEM, SETVAL, semarg) == -1) { in PHP_FUNCTION()
273 if (semctl(semid, SYSVSEM_SEM, SETVAL, &max_acquire) == -1) { in PHP_FUNCTION()
278 if (semctl(semid, SYSVSEM_SEM, SETVAL, max_acquire) == -1) { in PHP_FUNCTION()
289 while (semop(semid, sop, 1) == -1) { in PHP_FUNCTION()
298 sem_ptr->semid = semid; in PHP_FUNCTION()
339 while (semop(sem_ptr->semid, &sop, 1) == -1) { in php_sysvsem_semop()
396 if (semctl(sem_ptr->semid, 0, IPC_STAT, un) < 0) {
398 if (semctl(sem_ptr->semid, 0, IPC_STAT, NULL) < 0) {
405 if (semctl(sem_ptr->semid, 0, IPC_RMID, un) < 0) {
407 if (semctl(sem_ptr->semid, 0, IPC_RMID, NULL) < 0) {