Home
last modified time | relevance | path

Searched refs:sem_t (Results 1 - 25 of 215) sorted by relevance

123456789

/third_party/musl/porting/uniproton/kernel/include/
H A Dsemaphore.h15 #define SEM_FAILED ((sem_t *)0)
19 } sem_t; typedef
21 int sem_close(sem_t *);
22 int sem_destroy(sem_t *);
23 int sem_getvalue(sem_t *__restrict, int *__restrict);
24 int sem_init(sem_t *, int, unsigned);
25 sem_t *sem_open(const char *, int, ...);
26 int sem_post(sem_t *);
27 int sem_timedwait(sem_t *__restrict, const struct timespec *__restrict);
28 int sem_trywait(sem_t *);
[all...]
/third_party/musl/porting/liteos_m/user/include/
H A Dsemaphore.h15 #define SEM_FAILED ((sem_t *)0)
19 } sem_t; typedef
21 int sem_close(sem_t *);
22 int sem_destroy(sem_t *);
23 int sem_getvalue(sem_t *__restrict, int *__restrict);
24 int sem_init(sem_t *, int, unsigned);
25 sem_t *sem_open(const char *, int, ...);
26 int sem_post(sem_t *);
27 int sem_timedwait(sem_t *__restrict, const struct timespec *__restrict);
28 int sem_trywait(sem_t *);
[all...]
H A Dusr_lib_ops.h86 int (*sem_init)(sem_t *sem, int shared, unsigned int value);
87 int (*sem_destroy)(sem_t *sem);
88 int (*sem_wait)(sem_t *sem);
89 int (*sem_post)(sem_t *sem);
90 int (*sem_timedwait)(sem_t *sem, const struct timespec *timeout);
91 int (*sem_getvalue)(sem_t *sem, int *currVal);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dsemaphore.h17 #define SEM_FAILED ((sem_t *)0)
21 } sem_t; typedef
23 int sem_close(sem_t *);
24 int sem_destroy(sem_t *);
25 int sem_getvalue(sem_t *__restrict, int *__restrict);
26 int sem_init(sem_t *, int, unsigned);
27 sem_t *sem_open(const char *, int, ...);
28 int sem_post(sem_t *);
29 int sem_timedwait(sem_t *__restrict, const struct timespec *__restrict);
30 int sem_trywait(sem_t *);
[all...]
/third_party/musl/porting/liteos_a_newlib/kernel/include/
H A Dsemaphore.h14 #define SEM_FAILED ((sem_t *)0)
18 } sem_t; typedef
20 int sem_close(sem_t *);
21 int sem_destroy(sem_t *);
22 int sem_getvalue(sem_t *__restrict, int *__restrict);
23 int sem_init(sem_t *, int, unsigned);
24 sem_t *sem_open(const char *, int, ...);
25 int sem_post(sem_t *);
26 int sem_timedwait(sem_t *__restrict, const struct timespec *__restrict);
27 int sem_trywait(sem_t *);
[all...]
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dsemaphore.h15 #define SEM_FAILED ((sem_t *)0)
19 } sem_t; typedef
21 int sem_close(sem_t *);
22 int sem_destroy(sem_t *);
23 int sem_getvalue(sem_t *__restrict, int *__restrict);
24 int sem_init(sem_t *, int, unsigned);
25 sem_t *sem_open(const char *, int, ...);
26 int sem_post(sem_t *);
27 int sem_timedwait(sem_t *__restrict, const struct timespec *__restrict);
28 int sem_trywait(sem_t *);
[all...]
/third_party/musl/porting/liteos_m/kernel/include/
H A Dsemaphore.h15 #define SEM_FAILED ((sem_t *)0)
19 } sem_t; typedef
21 int sem_close(sem_t *);
22 int sem_destroy(sem_t *);
23 int sem_getvalue(sem_t *__restrict, int *__restrict);
24 int sem_init(sem_t *, int, unsigned);
25 sem_t *sem_open(const char *, int, ...);
26 int sem_post(sem_t *);
27 int sem_timedwait(sem_t *__restrict, const struct timespec *__restrict);
28 int sem_trywait(sem_t *);
[all...]
/third_party/musl/include/
H A Dsemaphore.h15 #define SEM_FAILED ((sem_t *)0)
19 } sem_t; typedef
21 int sem_close(sem_t *);
22 int sem_destroy(sem_t *);
23 int sem_getvalue(sem_t *__restrict, int *__restrict);
24 int sem_init(sem_t *, int, unsigned);
25 sem_t *sem_open(const char *, int, ...);
26 int sem_post(sem_t *);
27 int sem_timedwait(sem_t *__restrict, const struct timespec *__restrict);
28 int sem_trywait(sem_t *);
[all...]
/third_party/musl/libc-test/src/api/
H A Dsemaphore.c4 {sem_t *x = SEM_FAILED;} in f()
5 {int(*p)(sem_t*) = sem_close;} in f()
6 {int(*p)(sem_t*) = sem_destroy;} in f()
7 {int(*p)(sem_t*restrict,int*restrict) = sem_getvalue;} in f()
8 {int(*p)(sem_t*,int,unsigned) = sem_init;} in f()
9 {sem_t*(*p)(const char*,int,...) = sem_open;} in f()
10 {int(*p)(sem_t*) = sem_post;} in f()
11 {int(*p)(sem_t*) = sem_trywait;} in f()
13 {int(*p)(sem_t*) = sem_wait;} in f()
18 {int(*p)(sem_t*restric in g()
[all...]
/third_party/vk-gl-cts/framework/delibs/dethread/unix/
H A DdeSemaphoreUnix.c32 DE_STATIC_ASSERT(sizeof(deSemaphore) >= sizeof(sem_t*));
36 sem_t* sem = (sem_t*)deMalloc(sizeof(sem_t)); in deSemaphore_create()
55 sem_t* sem = (sem_t*)semaphore; in deSemaphore_destroy()
63 sem_t* sem = (sem_t*)semaphore; in deSemaphore_increment()
71 sem_t* sem = (sem_t*)semaphor in deSemaphore_decrement()
[all...]
H A DdeNamedSemaphoreUnix.c36 sem_t* semaphore;
88 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_increment()
96 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_decrement()
104 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_tryDecrement()
/third_party/musl/porting/liteos_a/user/src/thread/
H A Dsem_open.c24 sem_t *sem;
32 sem_t *sem_open(const char *name, int flags, ...) in sem_open()
38 sem_t newsem; in sem_open()
70 semtab[slot].sem = (sem_t *)-1; in sem_open()
91 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open()
124 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open()
132 munmap(map, sizeof(sem_t)); in sem_open()
146 munmap(map, sizeof(sem_t)); in sem_open()
166 int sem_close(sem_t *sem) in sem_close()
/third_party/musl/src/thread/
H A Dsem_open.c24 sem_t *sem;
32 sem_t *sem_open(const char *name, int flags, ...) in sem_open()
38 sem_t newsem; in sem_open()
70 semtab[slot].sem = (sem_t *)-1; in sem_open()
91 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open()
127 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open()
138 munmap(map, sizeof(sem_t)); in sem_open()
152 munmap(map, sizeof(sem_t)); in sem_open()
172 int sem_close(sem_t *sem)
H A Dsem_timedwait.c10 int __sem_timedwait(sem_t *restrict sem, const struct timespec *restrict at) in __sem_timedwait()
31 int sem_timedwait(sem_t *restrict sem, const struct timespec *restrict at) in sem_timedwait()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
H A D7-1.c83 sem_t *sems; in main()
84 sem_t sem_last; in main()
98 sems = (sem_t *) calloc(max, sizeof(sem_t)); in main()
/third_party/ltp/testcases/open_posix_testsuite/functional/semaphores/
H A Dsem_sleepingbarber.c28 static sem_t customer;
29 static sem_t barber;
30 static sem_t lock;
31 static sem_t print;
H A Dsem_conpro.c31 sem_t occupied;
32 sem_t empty;
33 sem_t lock;
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_sem_test.cpp12 sem_t sem_;
20 sem_t& sem = *reinterpret_cast<sem_t*>(arg); in ThreadFn()
/third_party/python/Python/
H A Dthread_pthread.h378 sem_t *lock; in PyThread_allocate_lock()
385 lock = (sem_t *)PyMem_RawMalloc(sizeof(sem_t)); in PyThread_allocate_lock()
404 sem_t *thelock = (sem_t *)lock; in PyThread_free_lock()
436 sem_t *thelock = (sem_t *)lock; in PyThread_acquire_lock_timed()
557 sem_t *thelock = (sem_t *)lock; in PyThread_release_lock()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/
H A D3-1.c86 static sem_t semsig1;
87 static sem_t semsig2;
90 static sem_t semsync;
91 static sem_t semsync2;
97 sem_t *sem;
/third_party/NuttX/drivers/pipes/
H A Dpipe_common.h112 sem_t d_bfsem; /* Used to serialize access to d_buffer and indices */
113 sem_t d_rdsem; /* Empty buffer - Reader waits for data write */
114 sem_t d_wrsem; /* Full buffer - Writer waits for data read */
/third_party/musl/porting/linux/user/src/thread/
H A Dsem_timedwait.c8 int __sem_timedwait(sem_t *restrict sem, const struct timespec *restrict at) in __sem_timedwait()
27 int sem_timedwait(sem_t *restrict sem, const struct timespec *restrict at) in sem_timedwait()
/third_party/ltp/testcases/kernel/syscalls/move_pages/
H A Dmove_pages_support.h49 sem_t *alloc_sem(int num);
50 void free_sem(sem_t *sem, int num);
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/
H A D2-2.c86 static sem_t *common() in common()
89 sem_t *sem; in common()
132 sem_t *sem; in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/
H A D3-3.c83 static sem_t semsig1;
84 static sem_t semsig2;
93 sem_t *sem;

Completed in 7 milliseconds

123456789