Lines Matching refs:semid
166 semop(sem_ptr->semid, sop, opcount);
191 int semid; in PHP_FUNCTION() local
206 semid = semget(key, 3, perm|IPC_CREAT); in PHP_FUNCTION()
207 if (semid == -1) { in PHP_FUNCTION()
238 while (semop(semid, sop, 3) == -1) { in PHP_FUNCTION()
246 count = semctl(semid, SYSVSEM_USAGE, GETVAL, NULL); in PHP_FUNCTION()
258 if (semctl(semid, SYSVSEM_SEM, SETVAL, semarg) == -1) { in PHP_FUNCTION()
263 if (semctl(semid, SYSVSEM_SEM, SETVAL, &max_acquire) == -1) { in PHP_FUNCTION()
268 if (semctl(semid, SYSVSEM_SEM, SETVAL, max_acquire) == -1) { in PHP_FUNCTION()
279 while (semop(semid, sop, 1) == -1) { in PHP_FUNCTION()
288 sem_ptr->semid = semid; in PHP_FUNCTION()
319 while (semop(sem_ptr->semid, &sop, 1) == -1) { in php_sysvsem_semop()
372 if (semctl(sem_ptr->semid, 0, IPC_STAT, un) < 0) {
374 if (semctl(sem_ptr->semid, 0, IPC_STAT, NULL) < 0) {
381 if (semctl(sem_ptr->semid, 0, IPC_RMID, un) < 0) {
383 if (semctl(sem_ptr->semid, 0, IPC_RMID, NULL) < 0) {