Lines Matching refs:semop
309 if (semop(sem_id_1, &sops, 1) == -1)
310 tst_brkm(TBROK, cleanup, "semop #1 failed - cnt_setup");
348 * Do a semop that will cause the child to sleep.
351 * by the semop() call.
353 if (semop(sem_id_1, &sops, 1) != -1)
354 tst_resm(TBROK, "semop succeeded - cnt_setup");
380 * Fork a child to do a semop that will pass.
406 * Do a semop that will increment the semaphore.
408 if (semop(sem_id_1, &sops, 1) == -1)
409 tst_resm(TBROK, "semop failed - pid_setup");
507 * do a semop() - we should get EINVAL
509 if (semop(sem_id_1, &sops, 1) != -1)
510 tst_resm(TFAIL, "semop succeeded on expected fail");