Lines Matching refs:semid
144 semop(sem_ptr->semid, sop, opcount); in sysvsem_free_obj()
187 int semid; in PHP_FUNCTION() local
202 semid = semget(key, 3, perm|IPC_CREAT); in PHP_FUNCTION()
203 if (semid == -1) { in PHP_FUNCTION()
234 while (semop(semid, sop, 3) == -1) { in PHP_FUNCTION()
242 count = semctl(semid, SYSVSEM_USAGE, GETVAL, NULL); in PHP_FUNCTION()
254 if (semctl(semid, SYSVSEM_SEM, SETVAL, semarg) == -1) { in PHP_FUNCTION()
259 if (semctl(semid, SYSVSEM_SEM, SETVAL, &max_acquire) == -1) { in PHP_FUNCTION()
264 if (semctl(semid, SYSVSEM_SEM, SETVAL, max_acquire) == -1) { in PHP_FUNCTION()
275 while (semop(semid, sop, 1) == -1) { in PHP_FUNCTION()
286 sem_ptr->semid = semid; in PHP_FUNCTION()
321 while (semop(sem_ptr->semid, &sop, 1) == -1) { in php_sysvsem_semop()
373 if (semctl(sem_ptr->semid, 0, IPC_STAT, un) < 0) {
375 if (semctl(sem_ptr->semid, 0, IPC_STAT, NULL) < 0) {
382 if (semctl(sem_ptr->semid, 0, IPC_RMID, un) < 0) {
384 if (semctl(sem_ptr->semid, 0, IPC_RMID, NULL) < 0) {