/freebsd-10.1-release/include/ |
H A D | semaphore.h | 44 typedef struct _sem sem_t; typedef in typeref:struct:_sem 46 #define SEM_FAILED ((sem_t *)0) 52 int sem_close(sem_t *); 53 int sem_destroy(sem_t *); 54 int sem_getvalue(sem_t * __restrict, int * __restrict); 55 int sem_init(sem_t *, int, unsigned int); 56 sem_t *sem_open(const char *, int, ...); 57 int sem_post(sem_t *); 58 int sem_timedwait(sem_t * __restrict, const struct timespec * __restrict); 59 int sem_trywait(sem_t *); [all...] |
/freebsd-10.1-release/lib/libthr/thread/ |
H A D | thr_sem.c | 54 typedef struct sem *sem_t; typedef in typeref:struct:sem 56 extern int _libc_sem_init_compat(sem_t *sem, int pshared, unsigned int value); 57 extern int _libc_sem_destroy_compat(sem_t *sem); 58 extern int _libc_sem_getvalue_compat(sem_t * __restrict sem, int * __restrict sval); 59 extern int _libc_sem_trywait_compat(sem_t *sem); 60 extern int _libc_sem_wait_compat(sem_t *sem); 61 extern int _libc_sem_timedwait_compat(sem_t * __restrict sem, 63 extern int _libc_sem_post_compat(sem_t *sem); 65 int _sem_init_compat(sem_t *sem, int pshared, unsigned int value); 66 int _sem_destroy_compat(sem_t *se [all...] |
/freebsd-10.1-release/lib/libc/gen/ |
H A D | sem.c | 49 * real pshared semaphores. The sem_t is an allocated object 93 typedef struct sem* sem_t; typedef in typeref:struct:sem 95 #define SEM_FAILED ((sem_t *)0) 106 static sem_t sem_alloc(unsigned int value, semid_t semid, int system_sem); 107 static void sem_free(sem_t sem); 124 sem_check_validity(sem_t *sem) 136 sem_free(sem_t sem) 143 static sem_t 146 sem_t sem; 153 sem = (sem_t)mallo [all...] |
H A D | sem_new.c | 71 sem_t *sem; 111 sem_check_validity(sem_t *sem) 123 _sem_init(sem_t *sem, int pshared, unsigned int value) 131 bzero(sem, sizeof(sem_t)); 139 sem_t * 147 sem_t *sem = NULL; 211 if (sb.st_size < sizeof(sem_t)) { 212 sem_t tmp; 222 sem = (sem_t *)mmap(NULL, sizeof(sem_t), PROT_REA [all...] |
/freebsd-10.1-release/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | barrier.h | 40 typedef sem_t sema_t;
|
/freebsd-10.1-release/tools/regression/posixsem2/ |
H A D | semtest.c | 21 sem_t *s; 26 s = (sem_t *)mmap(NULL, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_ANON|MAP_SHARED, 55 sem_t *s, *s2;
|
/freebsd-10.1-release/lib/libkse/thread/ |
H A D | thr_sem.c | 53 sem_check_validity(sem_t *sem) 67 sem_t *sem = (sem_t *)arg; 77 static sem_t 80 sem_t sem; 87 sem = (sem_t)malloc(sizeof(struct sem)); 118 _sem_init(sem_t *sem, int pshared, unsigned int value) 136 _sem_wait(sem_t *sem) 171 _sem_timedwait(sem_t * __restrict sem, 229 _sem_post(sem_t *se [all...] |
/freebsd-10.1-release/tools/regression/pthread/unwind/ |
H A D | sem_wait_cancel.cpp | 11 sem_t sem;
|
/freebsd-10.1-release/lib/libkse/test/ |
H A D | sem_d.c | 50 sem_t * sem = (sem_t *) a_arg; 61 sem_t sem_a, sem_b;
|
/freebsd-10.1-release/contrib/gcclibs/libgomp/config/posix/ |
H A D | sem.h | 71 typedef sem_t gomp_sem_t;
|
/freebsd-10.1-release/sys/contrib/dev/acpica/os_specific/service_layers/ |
H A D | osunixxf.c | 588 sem_t *Sem; 609 Sem = AcpiOsAllocate (sizeof (sem_t)); 643 sem_t *Sem = (sem_t *) Handle; 681 sem_t *Sem = (sem_t *) Handle; 810 sem_t *Sem = (sem_t *)Handle;
|
/freebsd-10.1-release/contrib/apr/include/arch/unix/ |
H A D | apr_arch_proc_mutex.h | 103 sem_t *psem_interproc;
|
/freebsd-10.1-release/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/ |
H A D | ProcessMonitor.h | 228 sem_t m_operation_pending; 229 sem_t m_operation_done; 238 sem_t m_semaphore; // Posted to once operation complete.
|
/freebsd-10.1-release/contrib/ntp/include/ |
H A D | ntp_worker.h | 51 typedef sem_t sema_type; 111 /* event handles / sem_t pointers */
|
/freebsd-10.1-release/contrib/apr/locks/unix/ |
H A D | proc_mutex.c | 74 sem_t *psem; 118 if (psem == (sem_t *)SEM_FAILED) { 128 if (psem == (sem_t *)SEM_FAILED) {
|
/freebsd-10.1-release/usr.bin/sort/ |
H A D | radixsort.c | 94 static sem_t mtsem;
|
H A D | file.c | 116 static sem_t tmp_files_sem; 1331 static sem_t mtsem;
|
/freebsd-10.1-release/usr.sbin/pppctl/ |
H A D | pppctl.c | 72 static sem_t sem_select; /* select() co-ordination between threads */
|
/freebsd-10.1-release/contrib/ofed/librdmacm/examples/ |
H A D | rping.c | 144 sem_t sem;
|
/freebsd-10.1-release/contrib/sqlite3/ |
H A D | sqlite3.c | 24161 sem_t *pSem; /* Named POSIX semaphore */ 25524 sem_t *pSem = pFile->pInode->pSem; 25579 sem_t *pSem = pFile->pInode->pSem; 25612 sem_t *pSem = pFile->pInode->pSem; [all...] |
/freebsd-10.1-release/crypto/heimdal/lib/sqlite/ |
H A D | sqlite3.c | 25552 sem_t *pSem; /* Named POSIX semaphore */ 26876 sem_t *pSem = pFile->pInode->pSem; 26931 sem_t *pSem = pFile->pInode->pSem; 26964 sem_t *pSem = pFile->pInode->pSem; [all...] |