Home
last modified time | relevance | path

Searched refs:semctl (Results 1 – 25 of 76) sorted by relevance

1234

/external/valgrind/none/tests/
Dsem.c32 semctl(semid, 0, IPC_RMID); in main()
36 if (semctl(semid, 0, GETVAL) != 1) in main()
39 semctl(semid, 0, IPC_RMID); in main()
43 if (semctl(semid, 0, GETPID) != getpid()) in main()
46 semctl(semid, 0, IPC_RMID); in main()
64 semctl(semid, 0, IPC_RMID); in main()
76 semctl(semid, 0, IPC_RMID); in main()
91 semctl(semid, 0, IPC_RMID); in main()
96 if (semctl(semid, 0, IPC_RMID) < 0) in main()
/external/ltp/testcases/kernel/ipc/ipc_stress/
Dsemaphore_test_03.c265 if (semctl(semid, 0, IPC_SET, arg) < 0) in test_commands()
273 if (semctl(semid, 0, IPC_STAT, arg) < 0) in test_commands()
294 if (semctl(semid, 0, SETALL, arg) < 0) in test_commands()
328 if ((val = semctl(semid, i, GETVAL, arg)) < 0) in test_commands()
351 if ((val = semctl(semid, i, GETVAL, arg)) < 0) in test_commands()
374 if ((val = semctl(semid, i, GETVAL, arg)) < 0) in test_commands()
392 if (semctl(semid, 0, SETALL, arg) < 0) in test_commands()
407 if ((val = semctl(semid, i, GETVAL, arg)) < 0) in test_commands()
432 if ((val = semctl(semid, i, GETVAL, arg)) < 0) in test_commands()
458 if ((val = semctl(semid, i, GETVAL, arg)) < 0) in test_commands()
[all …]
Dsemaphore_test_02.c244 if (semctl(semid, 0, IPC_SET, semunptr) < 0) in test_commands()
255 if (semctl(semid, 0, IPC_STAT, semunptr) < 0) in test_commands()
278 if (semctl(semid, i, SETVAL, arg) < 0) in test_commands()
291 if ((val = semctl(semid, i, GETVAL, arg)) < 0) in test_commands()
317 if ((val = semctl(semid, i, GETPID, arg)) < 0) in test_commands()
335 if ((val = semctl(semid, i, GETNCNT, arg)) < 0) in test_commands()
354 if ((val = semctl(semid, i, GETZCNT, arg)) < 0) in test_commands()
373 if (semctl(semid, 0, SETALL, arg) < 0) in test_commands()
384 if (semctl(semid, nsems, GETALL, arg) < 0) in test_commands()
399 if (semctl(semid, nsems, IPC_RMID, arg) < 0) in test_commands()
Dsemaphore_test_01.c135 if (semctl(semid, nsems, IPC_SET, exp_semdatap) < 0) in main()
138 if (semctl(semid, nsems, IPC_STAT, act_semdatap) < 0) in main()
Dshmem_test_03.c369 if (semctl(semid, WRITE, SETVAL, arg) < 0) in create_semaphores()
371 if (semctl(semid, READ_COUNT, SETVAL, arg) < 0) in create_semaphores()
391 if (semctl(semid, nsems, IPC_RMID, arg) < 0) in delete_semaphores()
/external/ltp/testcases/kernel/syscalls/ipc/semctl/
Dsemctl07.c70 if ((status = semctl(semid, 0, IPC_STAT, arg)) == -1) { in main()
72 semctl(semid, 1, IPC_RMID, arg); in main()
105 if ((status = semctl(semid, 0, GETVAL, arg)) == -1) { in main()
110 if ((status = semctl(semid, 0, SETVAL, arg)) == -1) { in main()
114 if ((status = semctl(semid, 0, GETVAL, arg)) == -1) { in main()
122 if ((status = semctl(semid, 0, GETPID, arg)) == -1) { in main()
131 if ((status = semctl(semid, 0, GETNCNT, arg)) == -1) { in main()
139 if ((status = semctl(semid, 0, GETZCNT, arg)) == -1) { in main()
Dsemctl01.c181 TEST(semctl(*(TC[i].semid), TC[i].semnum, TC[i].cmd, in main()
264 if (semctl(sem_id_1, 0, IPC_STAT, (union semun)&buf) == -1) { in func_set()
465 if (semctl(sem_id_1, 0, GETALL, (union semun)rarray) == -1) in func_sall()
490 semv = semctl(sem_id_1, SEM4, GETVAL, arr); in func_sval()
Dsemctl06.c259 if (semctl(id, 0, GETALL, get_arr) < 0) { in dotest()
280 if (semctl(id, 0, IPC_RMID, get_arr) < 0) { in dotest()
371 (void)semctl(tid, 0, IPC_RMID, arg); in term()
/external/ltp/testcases/kernel/containers/sysvipc/
Dsem_comm.c71 if (semctl(id, 0, SETVAL, su) == -1) { in chld1_sem()
73 semctl(id, 0, IPC_RMID); in chld1_sem()
85 semctl(id, 0, IPC_RMID); in chld1_sem()
95 semctl(id, 0, IPC_RMID); in chld1_sem()
115 if (semctl(id, 0, SETVAL, su) == -1) { in chld2_sem()
117 semctl(id, 0, IPC_RMID); in chld2_sem()
132 semctl(id, 0, IPC_RMID); in chld2_sem()
143 semctl(id, 0, IPC_RMID); in chld2_sem()
/external/strace/tests-mx32/
Dipc_sem.c51 semctl(id, 0, IPC_RMID, 0); in cleanup()
91 rc = semctl(bogus_semid, bogus_semnum, bogus_cmd, bogus_arg); in main()
99 if (semctl(id, 0, IPC_STAT, un)) in main()
105 rc = semctl(0, 0, SEM_INFO, un); in main()
110 rc = semctl(id, 0, SEM_STAT, un); in main()
Dsemop.c25 semctl(id, 0, IPC_RMID, 0); in cleanup()
47 if (semctl(id, 0, SETVAL, sem_union) == -1) in main()
/external/strace/tests-m32/
Dipc_sem.c51 semctl(id, 0, IPC_RMID, 0); in cleanup()
91 rc = semctl(bogus_semid, bogus_semnum, bogus_cmd, bogus_arg); in main()
99 if (semctl(id, 0, IPC_STAT, un)) in main()
105 rc = semctl(0, 0, SEM_INFO, un); in main()
110 rc = semctl(id, 0, SEM_STAT, un); in main()
Dsemop.c25 semctl(id, 0, IPC_RMID, 0); in cleanup()
47 if (semctl(id, 0, SETVAL, sem_union) == -1) in main()
/external/strace/tests/
Dipc_sem.c51 semctl(id, 0, IPC_RMID, 0); in cleanup()
91 rc = semctl(bogus_semid, bogus_semnum, bogus_cmd, bogus_arg); in main()
99 if (semctl(id, 0, IPC_STAT, un)) in main()
105 rc = semctl(0, 0, SEM_INFO, un); in main()
110 rc = semctl(id, 0, SEM_STAT, un); in main()
Dsemop.c25 semctl(id, 0, IPC_RMID, 0); in cleanup()
47 if (semctl(id, 0, SETVAL, sem_union) == -1) in main()
/external/ltp/testcases/kernel/syscalls/sendmsg/
Dsendmsg02.c95 semval = semctl(sem_id, 0, GETVAL); in client()
117 semval = semctl(sem_id, 0, GETVAL); in server()
134 if (semctl(sem_id, 0, SETVAL, u) == -1) in reproduce()
174 if (semctl(sem_id, 0, SETVAL, u) == -1) { in reproduce()
227 semctl(sem_id, 0, IPC_RMID); in cleanup()
/external/toybox/toys/pending/
Dipcs.c83 if ((ret = semctl(TT.id, 0, IPC_STAT, n)) < 0) { in show_sem_id()
107 val = semctl(TT.id, i, GETVAL, n); in show_sem_id()
108 nc = semctl(TT.id, i, GETNCNT, n); in show_sem_id()
109 zc = semctl(TT.id, i, GETZCNT, n); in show_sem_id()
110 pid = semctl(TT.id, i, GETPID, n); in show_sem_id()
259 if ((max_nr = semctl(0, 0, SEM_INFO, u)) < 0) { in sem_array()
275 if ((semctl(0, 0, 3, u)) < 0) //IPC_INFO in sem_array()
307 if ((semid = semctl(i, 0, SEM_STAT, u)) < 0) continue; in sem_array()
/external/ltp/testcases/kernel/sched/process_stress/
Dprocess.c317 if (semctl(sem_lock, 0, IPC_RMID, semarg.val) && errno != EINVAL) { in rm_semseg()
323 if (semctl(sem_count, 0, IPC_RMID, semarg.val) && errno != EINVAL) { in rm_semseg()
568 semctl(sem_count, pslot,
571 semctl(sem_count, pslot, SETVAL,
574 semctl(sem_lock, pslot, SETVAL,
592 semctl(sem_count, pslot, GETVAL, semarg);
594 semctl(sem_count, pslot, SETVAL, semarg);
596 semctl(sem_lock, pslot, SETVAL, semarg);
689 rc = semctl(sem_lock, i, SETVAL, semarg);
701 rc = semctl(sem_count, i, SETVAL, semarg);
/external/ltp/testcases/kernel/syscalls/cma/
Dprocess_vm.h87 if (semctl(id, 0, SETVAL, u) == -1) in init_sem()
96 if (semctl(id, 0, IPC_RMID) == -1) in clean_sem()
/external/ltp/testcases/kernel/ipc/semaphore/
Dsem02.c90 semctl(sem_id, 0, SETVAL, semunion); in main()
110 semctl(sem_id, 0, IPC_RMID, semunion); in main()
Dsem01.c134 if (semctl(semid, 0, SETVAL, semunion) == -1) { in main()
151 if (semctl(semid, 0, IPC_RMID, semunion) == -1) { in main()
/external/ltp/testcases/kernel/syscalls/ipc/semop/
Dsemop01.c88 if (semctl(sem_id_1, 0, GETALL, get_arr) == -1) { in main()
112 if (semctl(sem_id_1, i, SETVAL, set_arr) == -1) { in main()
Dsemop02.c128 if (semctl(sem_id_1, 0, IPC_INFO, arr) == -1) in setup()
134 if (semctl(sem_id_1, 0, SETVAL, arr) == -1) in setup()
/external/ltp/testcases/kernel/ipc/pipeio/
Dpipeio.c170 if (semctl(sem_id, 1, GETVAL) == 0) in main()
464 if (semctl(sem_id, 0, SETVAL, u) == -1) { in setup()
469 if (semctl(sem_id, 1, SETVAL, u) == -1) { in setup()
494 semctl(sem_id, 0, IPC_RMID); in cleanup()
/external/linux-kselftest/tools/testing/selftests/powerpc/syscalls/
Dipc.h10 DO_TEST(semctl, __NR_semctl)

1234