Home
last modified time | relevance | path

Searched refs:sem_id_1 (Results 1 – 14 of 14) sorted by relevance

/external/ltp/testcases/kernel/syscalls/ipc/semctl/
Dsemctl01.c53 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 …]
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 = in setup()
171 rm_sema(sem_id_1); in cleanup()
Dsemctl02.c62 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()
Dsemctl05.c64 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()
Dsemctl04.c68 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/
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); 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()
Dsemop05.c71 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()
Dsemop01.c62 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()
Dsemop04.c58 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()
Dsemop03.c58 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/
Dsemget01.c64 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()
Dsemget02.c62 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()
Dsemget03.c58 int sem_id_1 = -1; variable
79 sem_id_1 = TEST_RETURN; in main()
129 rm_sema(sem_id_1); in cleanup()
Dsemget06.c61 int sem_id_1 = -1; variable
87 sem_id_1 = TEST_RETURN; in main()
139 rm_sema(sem_id_1); in cleanup()