/osnet-11/usr/src/lib/libnisdb/ |
H A D | nisdb_mt.cc | 44 nisdb_tsd_t *tsd = (nisdb_tsd_t *)key; local 46 if (tsd != 0) { 47 free(tsd); 63 nisdb_tsd_t *tsd; local 65 if ((tsd = (nisdb_tsd_t *)pthread_getspecific(nisdb_tsd_key)) == 0) { 67 if ((tsd = (nisdb_tsd_t *)malloc(sizeof (*tsd))) != 0) { 69 memset(tsd, 0, sizeof (*tsd)); 71 if (pthread_setspecific(nisdb_tsd_key, tsd) ! 93 nisdb_tsd_t *tsd = __nisdb_get_tsd(); local 112 nisdb_tsd_t *tsd = __nisdb_get_tsd(); local 150 nisdb_tsd_t *tsd = __nisdb_get_tsd(); local [all...] |
H A D | nis_db.cc | 690 nisdb_tsd_t *tsd = __nisdb_get_tsd(); local 709 if (tsd == 0) 744 for (tmp = tsd->objDelList; tmp != 0; 754 nod->next = tsd->objDelList; 755 tsd->objDelList = nod;
|
/osnet-11/usr/src/lib/fm/libfmevent/common/ |
H A D | fmev_util.c | 94 struct fmev_tsd *tsd; local 107 if ((tsd = pthread_getspecific(fmev_tsdkey)) == NULL) { 108 if ((tsd = umem_alloc(sizeof (*tsd), UMEM_DEFAULT)) == NULL || 109 pthread_setspecific(fmev_tsdkey, (const void *)tsd) != 0) { 110 if (tsd) 111 umem_free(tsd, sizeof (*tsd)); 116 tsd->ts_lasterr = 0; 122 tsd 146 struct fmev_tsd *tsd; local 163 struct fmev_tsd *tsd; local 185 struct fmev_tsd *tsd; local [all...] |
/osnet-11/usr/src/lib/libadutils/common/ |
H A D | adutils_threadfuncs.c | 56 static void adutils_lderrno_destructor(void *tsd); 260 adutils_lderrno_destructor(void *tsd) argument 262 struct adutils_lderrno *le = tsd;
|
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | mt_misc.c | 183 struct rpc_err *tsd; local 187 tsd = thr_get_storage(&rpc_callerr_key, sizeof (struct rpc_err), free); 188 if (tsd == NULL) { 192 return (tsd);
|
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | open.c | 210 void *tsd; local 215 tsd = (void *)calloc(1, sizeof(struct nsldapi_ldap_error)); 216 pthread_setspecific( nsldapi_key, tsd ); 222 free(tsd);
|
/osnet-11/usr/src/lib/libmapid/common/ |
H A D | mapid.c | 1156 void *tsd = NULL; local 1158 (void) thr_getspecific(s_thr_key, &tsd); 1159 if (tsd == NULL) { 1160 tsd = malloc(NS_MAXCDNAME+1); 1161 if (tsd != NULL) { 1163 (void) strncpy((char *)tsd, mapid_domain, NS_MAXCDNAME); 1165 (void) thr_setspecific(s_thr_key, tsd); 1169 (void) strncpy((char *)tsd, mapid_domain, NS_MAXCDNAME); 1172 return ((char *)tsd);
|
/osnet-11/usr/src/lib/rpcsec_gss/ |
H A D | rpcsec_gss.c | 907 rpc_gss_error_t *tsd; local 913 tsd = pthread_getspecific(rpc_gss_err_key); 914 if (tsd == NULL) { 915 tsd = (rpc_gss_error_t *)calloc(1, sizeof (rpc_gss_error_t)); 916 if (thr_setspecific(rpc_gss_err_key, tsd) != 0) { 917 if (tsd) 918 free(tsd); 922 return (tsd);
|
/osnet-11/usr/src/lib/libsasl/lib/ |
H A D | common.c | 1128 void *tsd; local 1222 tsd = pthread_getspecific(errstring_key); 1223 if (tsd != NULL) 1224 free(tsd);
|
/osnet-11/usr/src/lib/libsldap/common/ |
H A D | ns_connmgmt.c | 154 void *tsd = NULL; local 158 rc = thr_getspecific(ns_mtckey, &tsd); 159 if (rc == 0 && tsd != NULL) 160 ns_mtckey_cleanup(tsd); 199 void *tsd; local 207 rc = thr_getspecific(ns_mtckey, &tsd); 208 if (rc == 0 && tsd != NULL) 212 tsd = (void *) calloc(1, sizeof (struct ldap_error)); 213 if (tsd == NULL) 215 rc = thr_setspecific(ns_mtckey, tsd); [all...] |
/osnet-11/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_brand.c | 218 void *tsd = NULL; local 241 if (thr_getspecific(key, &tsd)) 243 if (tsd == NULL) { 251 embufp = tsd;
|
/osnet-11/usr/src/lib/libc/inc/ |
H A D | thr_uberdata.h | 283 * The tsd union is designed to burn a little memory (9 words) to make 288 typedef union tsd { union
|