Home
last modified time | relevance | path

Searched refs:sems_tmp (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_open/
Ds-c1.c129 struct __test_t *sems_cur = &sems, *sems_tmp; in main() local
160 sems_tmp = malloc(sizeof(test_t)); in main()
162 if (sems_tmp == NULL) { in main()
184 sems_tmp->sems[i] = in main()
187 if (sems_tmp->sems[i] == SEM_FAILED) { in main()
228 ret = sem_close(sems_tmp->sems[i]); in main()
236 free(sems_tmp); in main()
241 sems_tmp->prev = sems_cur; in main()
242 sems_cur->next = sems_tmp; in main()
243 sems_cur = sems_tmp; in main()
/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_init/
Ds-c1.c129 struct __test_t *sems_cur = &sems, *sems_tmp; local
160 sems_tmp = (test_t *) malloc(sizeof(test_t));
162 if (sems_tmp == NULL) {
183 ret = sem_init(&(sems_tmp->sems[i]), i & 1, i & 3);
223 ret = sem_destroy(&(sems_tmp->sems[i]));
232 free(sems_tmp);
237 sems_tmp->prev = sems_cur;
238 sems_cur->next = sems_tmp;
239 sems_cur = sems_tmp;