Lines Matching refs:sop
138 struct sembuf sop[2]; local
151 sop[0].sem_num = SYSVSEM_USAGE;
152 sop[0].sem_op = -1;
153 sop[0].sem_flg = SEM_UNDO;
159 sop[1].sem_num = SYSVSEM_SEM;
160 sop[1].sem_op = sem_ptr->count;
161 sop[1].sem_flg = SEM_UNDO;
166 semop(sem_ptr->semid, sop, opcount);
202 struct sembuf sop[3]; in PHP_FUNCTION() local
233 sop[0].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
234 sop[0].sem_op = 0; in PHP_FUNCTION()
235 sop[0].sem_flg = 0; in PHP_FUNCTION()
239 sop[1].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
240 sop[1].sem_op = 1; in PHP_FUNCTION()
241 sop[1].sem_flg = SEM_UNDO; in PHP_FUNCTION()
245 sop[2].sem_num = SYSVSEM_USAGE; in PHP_FUNCTION()
246 sop[2].sem_op = 1; in PHP_FUNCTION()
247 sop[2].sem_flg = SEM_UNDO; in PHP_FUNCTION()
248 while (semop(semid, sop, 3) == -1) { in PHP_FUNCTION()
286 sop[0].sem_num = SYSVSEM_SETVAL; in PHP_FUNCTION()
287 sop[0].sem_op = -1; in PHP_FUNCTION()
288 sop[0].sem_flg = SEM_UNDO; in PHP_FUNCTION()
289 while (semop(semid, sop, 1) == -1) { in PHP_FUNCTION()
314 struct sembuf sop; in php_sysvsem_semop() local
335 sop.sem_num = SYSVSEM_SEM; in php_sysvsem_semop()
336 sop.sem_op = acquire ? -1 : 1; in php_sysvsem_semop()
337 sop.sem_flg = SEM_UNDO | (nowait ? IPC_NOWAIT : 0); in php_sysvsem_semop()
339 while (semop(sem_ptr->semid, &sop, 1) == -1) { in php_sysvsem_semop()