Home
last modified time | relevance | path

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

123

/third_party/ltp/testcases/kernel/containers/sysvipc/
Dsem_comm.c69 if (semctl(id, 0, SETVAL, su) == -1) { in chld1_sem()
71 semctl(id, 0, IPC_RMID); in chld1_sem()
83 semctl(id, 0, IPC_RMID); in chld1_sem()
93 semctl(id, 0, IPC_RMID); in chld1_sem()
113 if (semctl(id, 0, SETVAL, su) == -1) { in chld2_sem()
115 semctl(id, 0, IPC_RMID); in chld2_sem()
130 semctl(id, 0, IPC_RMID); in chld2_sem()
141 semctl(id, 0, IPC_RMID); in chld2_sem()
/third_party/musl/libc-test/src/functional/
Dipc_sem.c45 T(semctl(semid, 0, IPC_RMID)); in inc()
58 T(semctl(semid, 0, IPC_STAT, arg)); in inc()
76 T(semval = semctl(semid, 0, GETVAL)); in inc()
78 T(sempid = semctl(semid, 0, GETPID)); in inc()
80 T(semncnt = semctl(semid, 0, GETNCNT)); in inc()
82 T(semzcnt = semctl(semid, 0, GETZCNT)); in inc()
100 T(semval = semctl(semid, 0, GETVAL)); in dec()
104 T(semctl(semid, 0, IPC_RMID)); in dec()
/third_party/musl/libc-test/src/functionalext/supplement/ipc/
Dsemtimedop.c51 semctl(id, 0, IPC_STAT, &ds); in semtimedop_0100()
52 semctl(id, 0, GETVAL); in semtimedop_0100()
57 semctl(id, 0, GETVAL); in semtimedop_0100()
75 semctl(id, 0, GETVAL); in semtimedop_0100()
83 semctl(id, 0, GETVAL); in semtimedop_0100()
86 semctl(id, 0, IPC_RMID); in semtimedop_0100()
/third_party/ltp/testcases/kernel/syscalls/ipc/semctl/
Dsemctl03.c31 return semctl(semid, semnum, cmd, arg); in libc_semctl()
54 int (*semctl)(int semid, int semnum, int cmd, ...); member
57 { .semctl = libc_semctl, .desc = "libc semctl()"},
59 { .semctl = sys_semctl, .desc = "__NR_semctl syscall"},
68 if (tc->error == EFAULT && tv->semctl == libc_semctl) { in verify_semctl()
73 TST_EXP_FAIL(tv->semctl(*(tc->sem_id), 0, tc->ipc_cmd, *(tc->buf)), in verify_semctl()
Dsemctl07.c38 TST_EXP_PASS(semctl(semid, 0, IPC_STAT, arg)); in verify_semctl()
75 if ((status = semctl(semid, 0, GETVAL)) < 0) in verify_semctl()
82 if ((status = semctl(semid, 0, SETVAL, arg)) < 0) in verify_semctl()
87 if ((status = semctl(semid, 0, GETVAL)) < 0) in verify_semctl()
99 if ((status = semctl(semid, 0, GETPID)) < 0) in verify_semctl()
111 if ((status = semctl(semid, 0, GETNCNT)) < 0) in verify_semctl()
122 if ((status = semctl(semid, 0, GETZCNT)) < 0) in verify_semctl()
Dsemctl08.c33 TEST(semctl(semid, 0, IPC_STAT, arg)); in run()
42 if (semctl(semid, 0, IPC_RMID, arg) == -1) in run()
Dsemctl06.c228 if (semctl(id, 0, GETALL, get_arr) < 0) { in dotest()
249 if (semctl(id, 0, IPC_RMID, get_arr) < 0) { in dotest()
316 (void)semctl(tid, 0, IPC_RMID, arg); in term()
Dsemctl09.c67 return semctl(semid, semnum, cmd, un); in do_semctl()
147 TEST(semctl(sem_id, 0, SEM_INFO, arg)); in verify_semctl()
Dsemctl02.c28 TST_EXP_FAIL(semctl(sem_id, 0, IPC_STAT, un_arg), EACCES, in verify_semctl()
Dsemctl05.c44 TST_EXP_FAIL(semctl(sem_id, tc->count, tc->cmd, tc->t_arg), ERANGE, in verify_semctl()
/third_party/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()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/ipc/semop/
Dsemop01.c46 if (semctl(sem_id, 0, GETALL, get_arr) == -1) in run()
61 if (semctl(sem_id, i, SETVAL, arr) == -1) in run()
94 if (semctl(sem_id, 0, IPC_RMID) == -1) in cleanup()
Dsemop02.c101 if (semctl(valid_sem_id, 0, IPC_INFO, arr) == -1) in setup()
128 if (semctl(valid_sem_id, tc[i].ctl_sem_num, SETVAL, arr) == -1) in run()
159 if (semctl(valid_sem_id, 0, IPC_RMID) == -1) in cleanup()
164 if (semctl(noperm_sem_id, 0, IPC_RMID) == -1) in cleanup()
Dsemop03.c87 if (semctl(sem_id, 0, IPC_RMID) == -1) in cleanup()
96 if (semctl(sem_id, tc[i].num, SETVAL, tc[i].semunptr) == -1) in run()
/third_party/ltp/testcases/kernel/ipc/semaphore/
Dsem02.c89 semctl(sem_id, 0, SETVAL, semunion); in main()
109 semctl(sem_id, 0, IPC_RMID, semunion); in main()
Dsem01.c133 if (semctl(semid, 0, SETVAL, semunion) == -1) { in main()
150 if (semctl(semid, 0, IPC_RMID, semunion) == -1) { in main()
/third_party/musl/docs/
Dstatus.md104 - semctl
138 - semctl 函数用于对信号量集进行控制操作,如获取/设置信号量的状态信息、删除信号量集等。
/third_party/ltp/testcases/kernel/ipc/pipeio/
Dpipeio.c169 if (semctl(sem_id, 1, GETVAL) == 0) in main()
463 if (semctl(sem_id, 0, SETVAL, u) == -1) { in setup()
468 if (semctl(sem_id, 1, SETVAL, u) == -1) { in setup()
490 semctl(sem_id, 0, IPC_RMID); in cleanup()
/third_party/ltp/testcases/kernel/mce-test/tsrc/
Dthugetlb.c233 semaphore = semctl(semid, 0, SETVAL, 1); in main()
304 if (semctl(semid, 0, IPC_RMID) == -1) in main()
/third_party/musl/porting/uniproton/kernel/include/sys/
Dsem.h55 int semctl(int, int, int, ...);
/third_party/musl/include/sys/
Dsem.h55 int semctl(int, int, int, ...);
/third_party/musl/porting/liteos_m/kernel/include/sys/
Dsem.h55 int semctl(int, int, int, ...);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/
Dsem.h55 int semctl(int, int, int, ...);
/third_party/musl/ndk_musl_include/sys/
Dsem.h55 int semctl(int, int, int, ...);

123