Lines Matching refs:sop
117 struct sembuf sop[2]; in sysvsem_free_obj() local
130 sop[0].sem_num = SYSVSEM_USAGE; in sysvsem_free_obj()
131 sop[0].sem_op = -1; in sysvsem_free_obj()
132 sop[0].sem_flg = SEM_UNDO; in sysvsem_free_obj()
138 sop[1].sem_num = SYSVSEM_SEM; in sysvsem_free_obj()
139 sop[1].sem_op = sem_ptr->count; in sysvsem_free_obj()
140 sop[1].sem_flg = SEM_UNDO; in sysvsem_free_obj()
145 semop(sem_ptr->semid, sop, opcount); in sysvsem_free_obj()
194 struct sembuf sop[3]; in PHP_FUNCTION() local
225 sop[0].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
226 sop[0].sem_op = 0; in PHP_FUNCTION()
227 sop[0].sem_flg = 0; in PHP_FUNCTION()
231 sop[1].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
232 sop[1].sem_op = 1; in PHP_FUNCTION()
233 sop[1].sem_flg = SEM_UNDO; in PHP_FUNCTION()
237 sop[2].sem_num = SYSVSEM_USAGE; in PHP_FUNCTION()
238 sop[2].sem_op = 1; in PHP_FUNCTION()
239 sop[2].sem_flg = SEM_UNDO; in PHP_FUNCTION()
240 while (semop(semid, sop, 3) == -1) { in PHP_FUNCTION()
278 sop[0].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
279 sop[0].sem_op = -1; in PHP_FUNCTION()
280 sop[0].sem_flg = SEM_UNDO; in PHP_FUNCTION()
281 while (semop(semid, sop, 1) == -1) { in PHP_FUNCTION()
304 struct sembuf sop; in php_sysvsem_semop() local
323 sop.sem_num = SYSVSEM_SEM; in php_sysvsem_semop()
324 sop.sem_op = acquire ? -1 : 1; in php_sysvsem_semop()
325 sop.sem_flg = SEM_UNDO | (nowait ? IPC_NOWAIT : 0); in php_sysvsem_semop()
327 while (semop(sem_ptr->semid, &sop, 1) == -1) { in php_sysvsem_semop()