Searched defs:sem_id_1 (Results 1 - 14 of 14) sorted by relevance

/external/ltp/testcases/kernel/syscalls/ipc/semget/
H A Dsemget03.c58 int sem_id_1 = -1; variable
79 sem_id_1 = TEST_RETURN;
129 rm_sema(sem_id_1);
H A Dsemget01.c64 int sem_id_1 = -1; variable
92 sem_id_1 = TEST_RETURN;
101 if (sem_id_1 != -1) {
102 rm_sema(sem_id_1);
103 sem_id_1 = -1;
122 if (semctl(sem_id_1, 0, IPC_STAT, un_arg) == -1) {
168 rm_sema(sem_id_1);
H A Dsemget02.c62 int sem_id_1 = -1; variable
98 sem_id_1 = TEST_RETURN;
149 if ((sem_id_1 = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL)) == -1) {
161 rm_sema(sem_id_1);
H A Dsemget06.c61 int sem_id_1 = -1; variable
87 sem_id_1 = TEST_RETURN;
139 rm_sema(sem_id_1);
/external/ltp/testcases/kernel/syscalls/ipc/semctl/
H A Dsemctl02.c62 int sem_id_1 = -1; variable
87 TEST(semctl(sem_id_1, 0, IPC_STAT, un_arg));
141 if ((sem_id_1 = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL)) == -1) {
153 rm_sema(sem_id_1);
H A Dsemctl03.c70 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 =
171 rm_sema(sem_id_1);
H A Dsemctl04.c68 int sem_id_1 = -1; variable
105 rm_sema(sem_id_1);
140 TEST(semctl(sem_id_1, 0, TC[i], arg));
185 if ((sem_id_1 = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL)) == -1) {
H A Dsemctl05.c64 int sem_id_1 = -1; variable
112 TEST(semctl(sem_id_1, TC[i].count,
161 if ((sem_id_1 =
174 rm_sema(sem_id_1);
H A Dsemctl01.c54 static int sem_id_1 = -1; variable
109 {&sem_id_1, 0, IPC_STAT, func_stat, SEMUN_CAST & buf, NULL},
110 {&sem_id_1, 0, IPC_SET, func_set, SEMUN_CAST & buf, set_setup},
111 {&sem_id_1, 0, GETALL, func_gall, SEMUN_CAST array, NULL},
112 {&sem_id_1, SEM4, GETNCNT, func_cnt, SEMUN_CAST & buf, cnt_setup},
113 {&sem_id_1, SEM2, GETPID, func_pid, SEMUN_CAST & buf, pid_setup},
114 {&sem_id_1, SEM2, GETVAL, func_gval, SEMUN_CAST & buf, NULL},
115 {&sem_id_1, SEM4, GETZCNT, func_cnt, SEMUN_CAST & buf, cnt_setup},
116 {&sem_id_1, 0, SETALL, func_sall, SEMUN_CAST array, sall_setup},
117 {&sem_id_1, SEM
[all...]
/external/ltp/testcases/kernel/syscalls/ipc/semop/
H A Dsemop01.c62 int sem_id_1 = -1; /* a semaphore set with read & alter permissions */ variable
80 TEST(semop(sem_id_1, sops, NSEMS));
88 if (semctl(sem_id_1, 0, GETALL, get_arr) == -1) {
112 if (semctl(sem_id_1, i, SETVAL, set_arr) == -1) {
138 sem_id_1 = semget(semkey, PSEMS, IPC_CREAT | IPC_EXCL | SEM_RA);
139 if (sem_id_1 == -1)
151 rm_sema(sem_id_1);
H A Dsemop03.c58 int sem_id_1 = -1; variable
93 TEST(semop(sem_id_1, &s_buf, 1));
141 if ((sem_id_1 =
154 rm_sema(sem_id_1);
H A Dsemop04.c58 int sem_id_1 = -1; variable
104 if (semctl(sem_id_1, TC[i].num, SETVAL, TC[i].get_arr)
113 TEST(semop(sem_id_1, &s_buf, 1));
160 if ((sem_id_1 =
173 rm_sema(sem_id_1);
H A Dsemop05.c72 int sem_id_1 = -1; variable
113 maybe_run_child(&do_child_uclinux, "dd", &i_uclinux, &sem_id_1);
132 if (semctl(sem_id_1, TC[i].num, SETVAL, TC[i].semunptr)
144 if (self_exec(av[0], "dd", i, sem_id_1) < 0) {
162 rm_sema(sem_id_1);
178 if ((sem_id_1 = semget(semkey, PSEMS, IPC_CREAT |
200 TEST(semop(sem_id_1, &s_buf, 1));
268 if ((sem_id_1 =
281 rm_sema(sem_id_1);
H A Dsemop02.c41 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);
112 if (sem_id_1 == -1) {
128 if (semctl(sem_id_1, 0, IPC_INFO, arr) == -1)
134 if (semctl(sem_id_1, 0, SETVAL, arr) == -1)
159 rm_sema(sem_id_1);
[all...]

Completed in 195 milliseconds