Searched refs:sems_tmp (Results 1 – 2 of 2) sorted by relevance
126 struct __test_t *sems_cur = &sems, *sems_tmp; in main() local157 sems_tmp = malloc(sizeof(test_t)); in main()159 if (sems_tmp == NULL) { in main()181 sems_tmp->sems[i] = in main()184 if (sems_tmp->sems[i] == SEM_FAILED) { in main()225 ret = sem_close(sems_tmp->sems[i]); in main()233 free(sems_tmp); in main()238 sems_tmp->prev = sems_cur; in main()239 sems_cur->next = sems_tmp; in main()240 sems_cur = sems_tmp; in main()
126 struct __test_t *sems_cur = &sems, *sems_tmp; local157 sems_tmp = (test_t *) malloc(sizeof(test_t));159 if (sems_tmp == NULL) {180 ret = sem_init(&(sems_tmp->sems[i]), i & 1, i & 3);220 ret = sem_destroy(&(sems_tmp->sems[i]));229 free(sems_tmp);234 sems_tmp->prev = sems_cur;235 sems_cur->next = sems_tmp;236 sems_cur = sems_tmp;