HomeSort by relevance Sort by last modified time
    Searched refs:sems (Results 1 - 4 of 4) sorted by null

  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_open/
15-1.c 90 sem_t *sems[4]; local
98 sems[i] = sem_open(name, O_CREAT, 0777, 1);
100 if (sems[i] == SEM_FAILED) {
108 if (sems[i] != sems[i + 1]) {
113 ret = sem_close(sems[i]);
122 sems[i] = sem_open(name, O_CREAT, 0777, 1);
124 if (sems[i] == SEM_FAILED) {
132 if (sems[i] != sems[i + 1])
    [all...]
  /external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
7-1.c 85 sem_t *sems; local
100 sems = (sem_t *) calloc(max, sizeof(sem_t));
102 if (sems == NULL) {
107 ret = sem_init(&sems[i], 0, 0);
117 sem_destroy(&sems[i - 1]);
119 free(sems);
137 sem_destroy(&sems[i]);
139 free(sems);
  /external/ltp/testcases/open_posix_testsuite/stress/threads/sem_open/
s-c1.c 109 sem_t *sems[BLOCKSIZE]; member in struct:__test_t
127 test_t sems; local
129 struct __test_t *sems_cur = &sems, *sems_tmp;
141 /* Initialize sems */
184 sems_tmp->sems[i] =
187 if (sems_tmp->sems[i] == SEM_FAILED) {
228 ret = sem_close(sems_tmp->sems[i]);
293 while (sems_cur != &sems) {
304 ret = sem_close(sems_cur->sems[i]);
  /external/ltp/testcases/open_posix_testsuite/stress/threads/sem_init/
s-c1.c 110 sem_t sems[BLOCKSIZE]; member in struct:__test_t
127 test_t sems; local
129 struct __test_t *sems_cur = &sems, *sems_tmp;
141 /* Initialize sems */
183 ret = sem_init(&(sems_tmp->sems[i]), i & 1, i & 3);
223 ret = sem_destroy(&(sems_tmp->sems[i]));
283 while (sems_cur != &sems) {
294 ret = sem_destroy(&(sems_cur->sems[i]));

Completed in 58 milliseconds