Lines Matching refs:sop
115 struct sembuf sop[2]; in sysvsem_free_obj() local
128 sop[0].sem_num = SYSVSEM_USAGE; in sysvsem_free_obj()
129 sop[0].sem_op = -1; in sysvsem_free_obj()
130 sop[0].sem_flg = SEM_UNDO; in sysvsem_free_obj()
136 sop[1].sem_num = SYSVSEM_SEM; in sysvsem_free_obj()
137 sop[1].sem_op = sem_ptr->count; in sysvsem_free_obj()
138 sop[1].sem_flg = SEM_UNDO; in sysvsem_free_obj()
143 semop(sem_ptr->semid, sop, opcount); in sysvsem_free_obj()
188 struct sembuf sop[3]; in PHP_FUNCTION() local
219 sop[0].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
220 sop[0].sem_op = 0; in PHP_FUNCTION()
221 sop[0].sem_flg = 0; in PHP_FUNCTION()
225 sop[1].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
226 sop[1].sem_op = 1; in PHP_FUNCTION()
227 sop[1].sem_flg = SEM_UNDO; in PHP_FUNCTION()
231 sop[2].sem_num = SYSVSEM_USAGE; in PHP_FUNCTION()
232 sop[2].sem_op = 1; in PHP_FUNCTION()
233 sop[2].sem_flg = SEM_UNDO; in PHP_FUNCTION()
234 while (semop(semid, sop, 3) == -1) { in PHP_FUNCTION()
272 sop[0].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
273 sop[0].sem_op = -1; in PHP_FUNCTION()
274 sop[0].sem_flg = SEM_UNDO; in PHP_FUNCTION()
275 while (semop(semid, sop, 1) == -1) { in PHP_FUNCTION()
298 struct sembuf sop; in php_sysvsem_semop() local
317 sop.sem_num = SYSVSEM_SEM; in php_sysvsem_semop()
318 sop.sem_op = acquire ? -1 : 1; in php_sysvsem_semop()
319 sop.sem_flg = SEM_UNDO | (nowait ? IPC_NOWAIT : 0); in php_sysvsem_semop()
321 while (semop(sem_ptr->semid, &sop, 1) == -1) { in php_sysvsem_semop()