/third_party/ltp/testcases/kernel/containers/sysvipc/ |
D | sem_comm.c | 69 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/ |
D | ipc_sem.c | 45 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/ |
D | semtimedop.c | 51 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/ |
D | semctl03.c | 31 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()
|
D | semctl07.c | 38 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()
|
D | semctl08.c | 33 TEST(semctl(semid, 0, IPC_STAT, arg)); in run() 42 if (semctl(semid, 0, IPC_RMID, arg) == -1) in run()
|
D | semctl06.c | 228 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()
|
D | semctl09.c | 67 return semctl(semid, semnum, cmd, un); in do_semctl() 147 TEST(semctl(sem_id, 0, SEM_INFO, arg)); in verify_semctl()
|
D | semctl02.c | 28 TST_EXP_FAIL(semctl(sem_id, 0, IPC_STAT, un_arg), EACCES, in verify_semctl()
|
D | semctl05.c | 44 TST_EXP_FAIL(semctl(sem_id, tc->count, tc->cmd, tc->t_arg), ERANGE, in verify_semctl()
|
/third_party/ltp/testcases/kernel/syscalls/sendmsg/ |
D | sendmsg02.c | 95 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/ |
D | ipcs.c | 83 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/ |
D | semop01.c | 46 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()
|
D | semop02.c | 101 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()
|
D | semop03.c | 87 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/ |
D | sem02.c | 89 semctl(sem_id, 0, SETVAL, semunion); in main() 109 semctl(sem_id, 0, IPC_RMID, semunion); in main()
|
D | sem01.c | 133 if (semctl(semid, 0, SETVAL, semunion) == -1) { in main() 150 if (semctl(semid, 0, IPC_RMID, semunion) == -1) { in main()
|
/third_party/musl/docs/ |
D | status.md | 104 - semctl 138 - semctl 函数用于对信号量集进行控制操作,如获取/设置信号量的状态信息、删除信号量集等。
|
/third_party/ltp/testcases/kernel/ipc/pipeio/ |
D | pipeio.c | 169 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/ |
D | thugetlb.c | 233 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/ |
D | sem.h | 55 int semctl(int, int, int, ...);
|
/third_party/musl/include/sys/ |
D | sem.h | 55 int semctl(int, int, int, ...);
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
D | sem.h | 55 int semctl(int, int, int, ...);
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
D | sem.h | 55 int semctl(int, int, int, ...);
|
/third_party/musl/ndk_musl_include/sys/ |
D | sem.h | 55 int semctl(int, int, int, ...);
|