/titanic_44/usr/src/cmd/scadm/sparc/mpxu/common/ |
H A D | xsem.c | 42 xsem_init(xsem_t *sem, int pshared, unsigned int value) in xsem_init() argument 47 pthread_mutex_init(&sem->semMutex, NULL); in xsem_init() 48 pthread_cond_init(&sem->semCV, NULL); in xsem_init() 49 sem->semaphore = value; in xsem_init() 55 xsem_destroy(xsem_t *sem) in xsem_destroy() argument 57 pthread_mutex_destroy(&sem->semMutex); in xsem_destroy() 58 pthread_cond_destroy(&sem->semCV); in xsem_destroy() 59 sem->semaphore = 0; in xsem_destroy() 63 xsem_wait(xsem_t *sem) in xsem_wait() argument 65 pthread_mutex_lock(&sem->semMutex); in xsem_wait() [all …]
|
H A D | xsem.h | 62 int xsem_init(xsem_t *sem, int pshared, unsigned int value); 63 void xsem_destroy(xsem_t *sem); 64 int xsem_wait(xsem_t *sem); 65 int xsem_trywait(xsem_t *sem); 66 int xsem_post(xsem_t *sem); 67 void xsem_getvalue(xsem_t *sem, int *sval); 69 int xsem_xwait(xsem_t *sem, int timeout, timestruc_t *time);
|
/titanic_44/usr/src/lib/libc/port/rt/ |
H A D | sem.c | 61 sem_t *sem = NULL; in sem_open() local 140 sem = (sem_t *)mmap64(NULL, sizeof (sem_t), PROT_READ|PROT_WRITE, in sem_open() 144 if (sem == MAP_FAILED) in sem_open() 150 error = sema_init((sema_t *)sem, value, USYNC_PROCESS, 0); in sem_open() 162 next->sad_addr = sem; in sem_open() 166 return (sem); in sem_open() 178 (void) munmap((caddr_t)sem, sizeof (sem_t)); in sem_open() 185 sem_close(sem_t *sem) in sem_close() argument 193 if (freeit->sad_addr == sem) { in sem_close() 197 return (munmap((caddr_t)sem, sizeof (sem_t))); in sem_close() [all …]
|
H A D | mqueue.c | 136 #define MQ_ASSERT_SEMVAL_LEQ(sem, val) { \ argument 138 (void) sem_getvalue((sem), &_val); \ 143 #define MQ_ASSERT_SEMVAL_LEQ(sem, val) argument
|
/titanic_44/usr/src/lib/libfakekernel/common/ |
H A D | sema.c | 35 ksema_init(ksema_t *sem, uint32_t val, in ksema_init() argument 38 (void) _lwp_sema_init(sem, val); in ksema_init() 43 ksema_destroy(ksema_t *sem) in ksema_destroy() argument 48 sema_p(ksema_t *sem) in sema_p() argument 52 rv = _lwp_sema_wait(sem); in sema_p() 57 sema_v(ksema_t *sem) in sema_v() argument 59 (void) _lwp_sema_post(sem); in sema_v() 68 sema_p_sig(ksema_t *sem) in sema_p_sig() argument 71 rv = _lwp_sema_wait(sem); in sema_p_sig() 91 sema_tryp(ksema_t *sem) in sema_tryp() argument [all …]
|
/titanic_44/usr/src/lib/libbc/inc/include/sys/ |
H A D | sem.h | 67 struct sem *sem_base; /* ptr to first semaphore in set */ 77 struct sem { struct
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | sem_impl.h | 65 struct sem *sem_base; /* ptr to first semaphore in set */ 77 struct sem { struct
|
H A D | sem.h | 81 struct sem *sem_base; /* ptr to first semaphore in set */
|
H A D | Makefile | 493 sem.h \
|
/titanic_44/usr/src/cmd/csh/i386/ |
H A D | Makefile | 42 sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o 46 sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
|
/titanic_44/usr/src/cmd/csh/sparc/ |
H A D | Makefile | 44 sh.parse.o sh.proc.o sh.sem.o sh.set.o sh.time.o 48 sh.lex.o sh.misc.o sh.parse.o sh.print.o sh.proc.o sh.sem.o sh.set.o \
|
/titanic_44/usr/src/cmd/sendmail/libsm/ |
H A D | Makefile | 44 sem.o shm.o signal.o smstdio.o snprintf.o sscanf.o stdio.o \ 52 t-fopen t-strl t-strrevcmp t-path t-float t-scanf t-sem t-shm \
|
/titanic_44/usr/src/uts/common/syscall/ |
H A D | sem.c | 245 P2ROUNDUP(sp->sem_nsems * sizeof (struct sem), 64)); in sem_dtor() 290 struct sem *semp; /* semaphore ptr */ in sem_rollback() 308 struct sem *semp; in sem_rmid() 348 struct sem *p; /* ptr to semaphore */ in semctl() 628 struct sem *semp = &sp->sem_base[i]; in semexit() 704 kmem_zalloc(P2ROUNDUP(nsems * sizeof (struct sem), 64), in semget() 869 struct sem *semp; /* ptr to semaphore */ in semop()
|
H A D | SYSCALL.README | 289 semsys os/sem.c common/syscall/sem.c
|
/titanic_44/usr/src/man/man3head/ |
H A D | Makefile | 69 sem.h.3head \ 158 sem.3head \ 247 sem.3head := LINKSRC = sem.h.3head
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_pmap.c | 702 unsigned sem; in show_rpcb_entry_list() local 719 sem = getxdr_u_long(); in show_rpcb_entry_list() 725 semantics_strs[sem], in show_rpcb_entry_list()
|
/titanic_44/usr/src/cmd/csh/ |
H A D | Makefile | 41 sh.print.o sh.proc.o sh.sem.o sh.set.o\
|
/titanic_44/usr/src/cmd/zonecfg/ |
H A D | zonecfg_lex.l | 293 <TSTATE>max-sem-ids { return MAXSEMIDS; } 294 <CSTATE>max-sem-ids { return MAXSEMIDS; }
|
/titanic_44/usr/src/cmd/zoneadmd/ |
H A D | zoneadmd.c | 1842 sema_t sem; in main() member 2027 if (sema_init(&shstate->sem, 0, USYNC_PROCESS, NULL) != 0) { in main() 2088 (void) sema_wait(&shstate->sem); in main() 2089 (void) sema_destroy(&shstate->sem); in main() 2214 (void) sema_post(&shstate->sem); in main() 2271 (void) sema_post(&shstate->sem); in main()
|
/titanic_44/usr/src/cmd/auditrecord/ |
H A D | audit_record_attr.txt | 1484 comment=1, semaphore ID, "sem ID" 1490 comment=1, semaphore ID, "sem ID" 1497 comment=1, semaphore ID, "sem ID" 1504 comment=1, semaphore ID, "sem ID" 1511 comment=1, semaphore ID, "sem ID" 1518 comment=1, semaphore ID, "sem ID" 1525 comment=1, semaphore ID, "sem ID" 1532 comment=1, semaphore ID, "sem ID" 1539 comment=1, semaphore ID, "sem ID" 1546 comment=1, semaphore ID, "sem ID" [all …]
|
/titanic_44/usr/src/grub/grub-0.97/ |
H A D | THANKS | 103 Sergey Matveychuk <sem@ciam.ru>
|
/titanic_44/usr/src/cmd/perl/contrib/Sun/Solaris/Project/t/ |
H A D | Project.t | 471 [ 0, 0, {}, "rctl9:171::::process.max-sem-ops=(priv,10000000,deny)" ], 472 [ 0, 0, {}, "rctl10:172::::process.max-sem-nsems=(basic,1,deny)" ], 487 [ 0, 0, {}, "rctl25:187::::project.max-sem-ids=(priv,10,deny,signal=ABRT)" ],
|
/titanic_44/usr/src/uts/common/io/ib/adapters/hermon/ |
H A D | hermon.c | 3801 uint32_t sem; in hermon_sw_reset() local 3848 sem = ddi_get32(cmdhdl, state->hs_cmd_regs.sw_semaphore); in hermon_sw_reset() 3849 if (sem == 0) { in hermon_sw_reset() 4831 uint32_t sem, reset_delay = state->hs_cfg_profile->cp_sw_reset_delay; in hermon_quiesce() local 4895 sem = ddi_get32(cmdhdl, state->hs_cmd_regs.sw_semaphore); in hermon_quiesce() 4896 if (sem == 0) { in hermon_quiesce()
|
/titanic_44/usr/src/lib/libc/amd64/ |
H A D | Makefile | 810 sem.o \
|
/titanic_44/usr/src/lib/libc/sparcv9/ |
H A D | Makefile.com | 827 sem.o \
|