Lines Matching refs:sop
110 struct sembuf sop[2]; in sysvsem_free_obj() local
123 sop[0].sem_num = SYSVSEM_USAGE; in sysvsem_free_obj()
124 sop[0].sem_op = -1; in sysvsem_free_obj()
125 sop[0].sem_flg = SEM_UNDO; in sysvsem_free_obj()
131 sop[1].sem_num = SYSVSEM_SEM; in sysvsem_free_obj()
132 sop[1].sem_op = sem_ptr->count; in sysvsem_free_obj()
133 sop[1].sem_flg = SEM_UNDO; in sysvsem_free_obj()
138 semop(sem_ptr->semid, sop, opcount); in sysvsem_free_obj()
177 struct sembuf sop[3]; in PHP_FUNCTION() local
208 sop[0].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
209 sop[0].sem_op = 0; in PHP_FUNCTION()
210 sop[0].sem_flg = 0; in PHP_FUNCTION()
214 sop[1].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
215 sop[1].sem_op = 1; in PHP_FUNCTION()
216 sop[1].sem_flg = SEM_UNDO; in PHP_FUNCTION()
220 sop[2].sem_num = SYSVSEM_USAGE; in PHP_FUNCTION()
221 sop[2].sem_op = 1; in PHP_FUNCTION()
222 sop[2].sem_flg = SEM_UNDO; in PHP_FUNCTION()
223 while (semop(semid, sop, 3) == -1) { in PHP_FUNCTION()
248 sop[0].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
249 sop[0].sem_op = -1; in PHP_FUNCTION()
250 sop[0].sem_flg = SEM_UNDO; in PHP_FUNCTION()
251 while (semop(semid, sop, 1) == -1) { in PHP_FUNCTION()
274 struct sembuf sop; in php_sysvsem_semop() local
293 sop.sem_num = SYSVSEM_SEM; in php_sysvsem_semop()
294 sop.sem_op = acquire ? -1 : 1; in php_sysvsem_semop()
295 sop.sem_flg = SEM_UNDO | (nowait ? IPC_NOWAIT : 0); in php_sysvsem_semop()
297 while (semop(sem_ptr->semid, &sop, 1) == -1) { in php_sysvsem_semop()