/titanic_44/usr/src/lib/libadutils/common/ |
H A D | adutils_threadfuncs.c | 50 static void adutils_mutex_free(void *mutexp); 122 pthread_mutex_t *mutexp; in adutils_mutex_alloc() local 125 mutexp = malloc(sizeof (pthread_mutex_t)); in adutils_mutex_alloc() 126 if (mutexp == NULL) { in adutils_mutex_alloc() 133 rc = pthread_mutex_init(mutexp, NULL); in adutils_mutex_alloc() 139 free(mutexp); in adutils_mutex_alloc() 142 return (mutexp); in adutils_mutex_alloc() 150 adutils_mutex_free(void *mutexp) in adutils_mutex_free() argument 152 (void) pthread_mutex_destroy((pthread_mutex_t *)mutexp); in adutils_mutex_free() 153 free(mutexp); in adutils_mutex_free()
|
/titanic_44/usr/src/cmd/sendmail/db/include/ |
H A D | mp.h | 81 #define LOCKINIT(dbmp, mutexp) \ argument 83 (void)__db_mutex_init(mutexp, \ 84 MUTEX_LOCK_OFFSET((dbmp)->reginfo.addr, mutexp)) 86 #define LOCKHANDLE(dbmp, mutexp) \ argument 88 (void)__db_mutex_lock(mutexp, (dbmp)->reginfo.fd) 89 #define UNLOCKHANDLE(dbmp, mutexp) \ argument 91 (void)__db_mutex_unlock(mutexp, (dbmp)->reginfo.fd) 121 db_mutex_t *mutexp; /* Structure lock. */ member 163 db_mutex_t *mutexp; /* Structure lock. */ member
|
H A D | txn.h | 73 db_mutex_t *mutexp; /* Synchronization. */ member 121 (void)__db_mutex_lock((tmgrp)->mutexp, -1) 124 (void)__db_mutex_unlock((tmgrp)->mutexp, -1)
|
H A D | log.h | 32 (void)__db_mutex_lock((dblp)->mutexp, -1) 35 (void)__db_mutex_unlock((dblp)->mutexp, -1); 65 db_mutex_t *mutexp; /* Mutex for thread protection. */ member
|
H A D | os.h | 21 db_mutex_t *mutexp; /* Mutex to lock. */ member
|
/titanic_44/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_bh.c | 59 LOCKHANDLE(dbmp, dbmp->mutexp); 65 UNLOCKHANDLE(dbmp, dbmp->mutexp); 77 UNLOCKHANDLE(dbmp, dbmp->mutexp); 88 LOCKHANDLE(dbmp, dbmp->mutexp); 93 UNLOCKHANDLE(dbmp, dbmp->mutexp); 132 LOCKHANDLE(dbmp, dbmp->mutexp); 134 UNLOCKHANDLE(dbmp, dbmp->mutexp); 182 db_io.mutexp = 183 F_ISSET(dbmp, MP_LOCKHANDLE) ? dbmfp->mutexp : NULL; 339 LOCKHANDLE(dbmp, dbmfp->mutexp); [all …]
|
H A D | mp_open.c | 87 sizeof(db_mutex_t), NULL, &dbmp->mutexp); 93 LOCKINIT(dbmp, dbmp->mutexp); 134 __db_shalloc_free(dbmp->addr, dbmp->mutexp); 216 LOCKHANDLE(dbmp, dbmp->mutexp); 218 UNLOCKHANDLE(dbmp, dbmp->mutexp);
|
H A D | mp_fopen.c | 214 __memp_alloc(dbmp, sizeof(db_mutex_t), NULL, &dbmfp->mutexp)) == 0) 215 LOCKINIT(dbmp, dbmfp->mutexp); 273 LOCKHANDLE(dbmp, dbmp->mutexp); 275 UNLOCKHANDLE(dbmp, dbmp->mutexp); 423 LOCKHANDLE(dbmp, dbmp->mutexp); 451 UNLOCKHANDLE(dbmp, dbmp->mutexp); 455 UNLOCKHANDLE(dbmp, dbmp->mutexp); 480 if (dbmfp->mutexp != NULL) { 482 __db_shalloc_free(dbmp->addr, dbmfp->mutexp);
|
/titanic_44/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | open.c | 103 LDAP_MUTEX_T *mutexp; in pthread_mutex_alloc() local 105 if ( (mutexp = malloc( sizeof(LDAP_MUTEX_T) )) != NULL ) { in pthread_mutex_alloc() 106 pthread_mutex_init( mutexp, NULL ); in pthread_mutex_alloc() 108 return( mutexp ); in pthread_mutex_alloc() 121 pthread_mutex_free( void *mutexp ) in pthread_mutex_free() argument 123 pthread_mutex_destroy( (LDAP_MUTEX_T *) mutexp ); in pthread_mutex_free() 124 free( mutexp ); in pthread_mutex_free() 193 pthread_mutex_t *mutexp; in pthread_mutex_alloc() local 195 if ( (mutexp = malloc( sizeof(pthread_mutex_t) )) != NULL ) { in pthread_mutex_alloc() 196 pthread_mutex_init( mutexp, NULL ); in pthread_mutex_alloc() [all …]
|
/titanic_44/usr/src/cmd/sendmail/db/os/ |
H A D | os_rw.c | 57 if (db_iop->mutexp != NULL) 58 (void)__db_mutex_lock(db_iop->mutexp, db_iop->fd_lock); 74 err: if (db_iop->mutexp != NULL) 75 (void)__db_mutex_unlock(db_iop->mutexp, db_iop->fd_lock);
|
/titanic_44/usr/src/cmd/sendmail/db/log/ |
H A D | log.c | 123 sizeof(db_mutex_t), MUTEX_ALIGNMENT, &dblp->mutexp)) != 0) 125 (void)__db_mutex_init(dblp->mutexp, 0); 141 if (dblp->mutexp != NULL) 142 __db_shalloc_free(dblp->addr, dblp->mutexp); 444 if (dblp->mutexp != NULL) { 446 __db_shalloc_free(dblp->addr, dblp->mutexp);
|
/titanic_44/usr/src/cmd/sendmail/db/txn/ |
H A D | txn.c | 144 tmgrp->mutexp = NULL; 187 MUTEX_ALIGNMENT, &tmgrp->mutexp)) == 0) 193 __db_mutex_init(tmgrp->mutexp, 0); 203 if (tmgrp->mutexp != NULL) 204 __db_shalloc_free(tmgrp->mem, tmgrp->mutexp); 535 if (tmgrp->mutexp != NULL) { 537 __db_shalloc_free(tmgrp->mem, tmgrp->mutexp); 896 mutex_offset = tp->mutexp != NULL ? 897 (u_int8_t *)tp->mutexp - (u_int8_t *)tp->region : 0; 907 tp->mutexp = mutex_offset != 0 ?
|
/titanic_44/usr/src/cmd/sendmail/db/ |
H A D | db_int.h | 187 (void)__db_mutex_lock((db_mutex_t *)(dbp)->mutexp, -1); 190 (void)__db_mutex_unlock((db_mutex_t *)(dbp)->mutexp, -1);
|
H A D | db.h | 404 void *mutexp; /* Synchronization for free threading */ member
|
/titanic_44/usr/src/lib/libsldap/common/ |
H A D | ns_connmgmt.c | 174 mutex_t *mutexp = NULL; in ns_mutex_alloc() local 176 if ((mutexp = malloc(sizeof (mutex_t))) != NULL) { in ns_mutex_alloc() 177 if (mutex_init(mutexp, USYNC_THREAD, NULL) != 0) { in ns_mutex_alloc() 178 free(mutexp); in ns_mutex_alloc() 179 mutexp = NULL; in ns_mutex_alloc() 182 return (mutexp); in ns_mutex_alloc() 187 ns_mutex_free(void *mutexp) in ns_mutex_free() argument 189 (void) mutex_destroy((mutex_t *)mutexp); in ns_mutex_free() 190 free(mutexp); in ns_mutex_free()
|
/titanic_44/usr/src/cmd/sendmail/db/db/ |
H A D | db.c | 633 sizeof(db_mutex_t), NULL, &dbp->mutexp)) != 0) 639 (void)__db_mutex_init(dbp->mutexp, 0);
|