Home
last modified time | relevance | path

Searched refs:sem_init (Results 1 – 25 of 31) sorted by relevance

12

/kernel/liteos_m/testsuites/unittest/xts/ipc/semaphone/
Dsem_test.c56 ret = sem_init((sem_t *)&sem, 0, testValue[0]);
70 ret = sem_init((sem_t *)&sem, 0, 0);
92 ret = sem_init((sem_t *)&sem, 0, 3); /* 3, common data for test, no special meaning */
132 ret = sem_init((sem_t *)&sem, 0, 0);
215 ret = sem_init((sem_t *)&sem, 0, 0);
266 ret = sem_init(&sem, 0, SEM_VALUE_MAX);
272 ret = sem_init(&sem, 0, gtSemMax);
277 ret = sem_init(&sem, 0, 1); /* 1, common data for test, no special meaning */
290 ret = sem_init(&sem, 0, SEM_VALUE_MAX);
307 ret = sem_init(&sem, 0, 0);
[all …]
Dsem_abn_test.c56 ret = sem_init(&sem, 0, SEM_VALUE_MAX);
80 ret = sem_init(&sem, 0, gtSemMax);
97 ret = sem_init(&sem, 0, 1); /* 1, common data for test, no special meaning */
115 ret = sem_init(&sem, 0, SEM_VALUE_MAX);
140 ret = sem_init(&sem, 0, 0);
170 ret = sem_init(&sem, 0, 0);
Dsem_xts_test.c57 ret = sem_init(&sem, 0, testValue);
82 ret = sem_init(&sem, 0, testValue);
107 ret = sem_init(&sem, 0, testValue);
131 ret = sem_init(&sem, 0, 0);
169 ret = sem_init(&sem, 0, 3); /* 3, common data for test, no special meaning */
206 ret = sem_init(&sem, 0, 0);
240 reInt = sem_init(&sem, 0, 0);
306 reInt = sem_init(&sem, 0, 0);
383 reInt = sem_init(&sem, 0, 0);
/kernel/liteos_m/testsuites/unittest/posix/src/semaphore/
Dsemaphore_func_test.c109 ICUNIT_ASSERT_EQUAL(sem_init((sem_t *)&sem, 0, 0), 0, 0);
141 ICUNIT_ASSERT_EQUAL(sem_init((sem_t *)&sem, 0, 1), 0, 0);
188 ret = sem_init((sem_t *)&sem, 0, 0);
229 ret = sem_init(&sem, 0, 1);
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/
Dchild.h64 ret = sem_init(&sync->sem_parent, 1, 0); in init_child_sync()
70 ret = sem_init(&sync->sem_child, 1, 0); in init_child_sync()
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/
DIt_posix_mutex_022.c98 if ((ret = sem_init(&g_semA, 0, 0))) { in Testcase()
101 if ((ret = sem_init(&g_semB, 0, 0))) { in Testcase()
DIt_posix_mutex_059.c55 ret = sem_init(&sem, pshared, 2); // 2, The initial number of available semaphores. in Testcase()
DIt_posix_mutex_038.c78 if ((ret = sem_init(&g_sem038, 0, 0))) { in Testcase()
DIt_posix_mutex_079.c92 ret = sem_init(&g_sem079, g_pshared084, 0); in Testcase()
DIt_posix_mutex_075.c128 ret = sem_init(&g_sem075, g_pshared075, 0); in Testcase()
DIt_posix_mutex_074.c129 ret = sem_init(&g_sem074, g_pshared074, 2); // 2, The initial number of available semaphores. in Testcase()
/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/smoke/
DIt_posix_mutex_019.c113 if ((ret = sem_init(&g_semA, 0, 0))) { in Testcase()
117 if ((ret = sem_init(&g_semB, 0, 0))) { in Testcase()
/kernel/liteos_m/kal/libc/newlib/porting/include/
Dsemaphore.h49 int sem_init(sem_t *sem, int shared, unsigned value);
/kernel/liteos_m/testsuites/unittest/fuzz/src/semaphore/
Dsem_timedwait_fuzz.c71 sem_init(&sem, pshared, value); in SemTimedWaitFuzzTest()
/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/full/
DIt_posix_pthread_062.cpp60 ret = sem_init(&sem, 0, 0); in Testcase()
/kernel/liteos_m/testsuites/sample/posix/mutex/
DIt_posix_mutex_017.c48 ret = sem_init(&sem, pshared, 2); // 2, The initial number of available semaphores. in Testcase()
DIt_posix_mutex_043.c87 ret = sem_init(&g_sem079, g_pshared084, 0); in Testcase()
DIt_posix_mutex_037.c66 ret = sem_init(&g_sem038, 0, 0); in Testcase()
DIt_posix_mutex_049.c123 ret = sem_init(&g_sem075, g_pshared075, 0); in Testcase()
DIt_posix_mutex_048.c124 ret = sem_init(&g_sem074, g_pshared074, 2); // 2, The initial number of available semaphores. in Testcase()
/kernel/liteos_a/compat/posix/src/
Dsemaphore.c39 int sem_init(sem_t *sem, int shared, unsigned int value) in sem_init() function
/kernel/liteos_a/apps/shell/src/
Dmain.c170 sem_init(&shellCB->shellSem, 0, 0); in main()
/kernel/liteos_m/kal/posix/src/
Dsemaphore.c68 int sem_init(sem_t *sem, int shared, unsigned int value) in sem_init() function
/kernel/linux/linux-5.10/ipc/
Dutil.h50 void sem_init(void);
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/
DIt_posix_pthread.c178 ret = sem_init(&g_scenarii[i].sem, 0, 0); in ScenarInit()

12