/external/ltp/testcases/kernel/syscalls/ipc/semctl/ |
D | semctl01.c | 53 static int sem_id_1 = -1; variable 108 {&sem_id_1, 0, IPC_STAT, func_stat, SEMUN_CAST & buf, NULL}, 109 {&sem_id_1, 0, IPC_SET, func_set, SEMUN_CAST & buf, set_setup}, 110 {&sem_id_1, 0, GETALL, func_gall, SEMUN_CAST array, NULL}, 111 {&sem_id_1, SEM4, GETNCNT, func_cnt, SEMUN_CAST & buf, cnt_setup}, 112 {&sem_id_1, SEM2, GETPID, func_pid, SEMUN_CAST & buf, pid_setup}, 113 {&sem_id_1, SEM2, GETVAL, func_gval, SEMUN_CAST & buf, NULL}, 114 {&sem_id_1, SEM4, GETZCNT, func_cnt, SEMUN_CAST & buf, cnt_setup}, 115 {&sem_id_1, 0, SETALL, func_sall, SEMUN_CAST array, sall_setup}, 116 {&sem_id_1, SEM4, SETVAL, func_sval, SEMUN_CAST INCVAL, NULL}, [all …]
|
D | semctl03.c | 70 int sem_id_1 = -1; variable 83 &sem_id_1, -1, SEMUN_CAST & sem_ds, EINVAL}, 89 &sem_id_1, GETALL, SEMUN_CAST - 1, EFAULT}, 93 &sem_id_1, IPC_SET, SEMUN_CAST - 1, EFAULT} 158 if ((sem_id_1 = in setup() 171 rm_sema(sem_id_1); in cleanup()
|
D | semctl02.c | 62 int sem_id_1 = -1; variable 87 TEST(semctl(sem_id_1, 0, IPC_STAT, un_arg)); in main() 141 if ((sem_id_1 = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL)) == -1) { in setup() 153 rm_sema(sem_id_1); in cleanup()
|
D | semctl05.c | 64 int sem_id_1 = -1; variable 112 TEST(semctl(sem_id_1, TC[i].count, in main() 161 if ((sem_id_1 = in setup() 174 rm_sema(sem_id_1); in cleanup()
|
D | semctl04.c | 68 int sem_id_1 = -1; variable 105 rm_sema(sem_id_1); in main() 140 TEST(semctl(sem_id_1, 0, TC[i], arg)); in do_child() 185 if ((sem_id_1 = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL)) == -1) { in setup()
|
/external/ltp/testcases/kernel/syscalls/ipc/semop/ |
D | semop02.c | 41 int sem_id_1 = -1; /* a semaphore set with read & alter permissions */ variable 58 {&sem_id_1, (struct sembuf *)&s_buf, BIGOPS, E2BIG}, 60 {&sem_id_1, (struct sembuf *)-1, NSOPS, EFAULT}, 61 {&sem_id_1, (struct sembuf *)&s_buf, 0, EINVAL}, 63 {&sem_id_1, (struct sembuf *)&s_buf, 1, ERANGE} 111 sem_id_1 = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL | SEM_RA); in setup() 112 if (sem_id_1 == -1) { in setup() 128 if (semctl(sem_id_1, 0, IPC_INFO, arr) == -1) in setup() 134 if (semctl(sem_id_1, 0, SETVAL, arr) == -1) in setup() 159 rm_sema(sem_id_1); in cleanup()
|
D | semop05.c | 71 int sem_id_1 = -1; variable 112 maybe_run_child(&do_child_uclinux, "dd", &i_uclinux, &sem_id_1); in main() 131 if (semctl(sem_id_1, TC[i].num, SETVAL, TC[i].semunptr) in main() 143 if (self_exec(av[0], "dd", i, sem_id_1) < 0) { in main() 161 rm_sema(sem_id_1); in main() 180 if ((sem_id_1 = semget(semkey, PSEMS, IPC_CREAT | in main() 202 TEST(semop(sem_id_1, &s_buf, 1)); in do_child() 270 if ((sem_id_1 = in setup() 283 rm_sema(sem_id_1); in cleanup()
|
D | semop01.c | 62 int sem_id_1 = -1; /* a semaphore set with read & alter permissions */ variable 80 TEST(semop(sem_id_1, sops, NSEMS)); in main() 88 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() 138 sem_id_1 = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL | SEM_RA); in setup() 139 if (sem_id_1 == -1) in setup() 151 rm_sema(sem_id_1); in cleanup()
|
D | semop04.c | 58 int sem_id_1 = -1; variable 104 if (semctl(sem_id_1, TC[i].num, SETVAL, TC[i].get_arr) in main() 113 TEST(semop(sem_id_1, &s_buf, 1)); in main() 160 if ((sem_id_1 = in setup() 173 rm_sema(sem_id_1); in cleanup()
|
D | semop03.c | 58 int sem_id_1 = -1; variable 93 TEST(semop(sem_id_1, &s_buf, 1)); in main() 141 if ((sem_id_1 = in setup() 154 rm_sema(sem_id_1); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/ipc/semget/ |
D | semget01.c | 64 int sem_id_1 = -1; variable 92 sem_id_1 = TEST_RETURN; in main() 101 if (sem_id_1 != -1) { in main() 102 rm_sema(sem_id_1); in main() 103 sem_id_1 = -1; in main() 122 if (semctl(sem_id_1, 0, IPC_STAT, un_arg) == -1) { in check_functionality() 168 rm_sema(sem_id_1); in cleanup()
|
D | semget02.c | 62 int sem_id_1 = -1; variable 98 sem_id_1 = TEST_RETURN; in main() 149 if ((sem_id_1 = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL)) == -1) { in setup() 161 rm_sema(sem_id_1); in cleanup()
|
D | semget03.c | 58 int sem_id_1 = -1; variable 79 sem_id_1 = TEST_RETURN; in main() 129 rm_sema(sem_id_1); in cleanup()
|
D | semget06.c | 61 int sem_id_1 = -1; variable 87 sem_id_1 = TEST_RETURN; in main() 139 rm_sema(sem_id_1); in cleanup()
|