/illumos-gate/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 | 695 nisdb_tsd_t *tsd = __nisdb_get_tsd(); local 714 if (tsd == 0) 749 for (tmp = tsd->objDelList; tmp != 0; 759 nod->next = tsd->objDelList; 760 tsd->objDelList = nod;
|
/illumos-gate/usr/src/lib/fm/libfmevent/common/ |
H A D | fmev_util.c | 93 struct fmev_tsd *tsd; local 106 if ((tsd = pthread_getspecific(fmev_tsdkey)) == NULL) { 107 if ((tsd = umem_alloc(sizeof (*tsd), UMEM_DEFAULT)) == NULL || 108 pthread_setspecific(fmev_tsdkey, (const void *)tsd) != 0) { 109 if (tsd) 110 umem_free(tsd, sizeof (*tsd)); 115 tsd->ts_lasterr = 0; 121 tsd 145 struct fmev_tsd *tsd; local 162 struct fmev_tsd *tsd; local 184 struct fmev_tsd *tsd; local [all...] |
/illumos-gate/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;
|
/illumos-gate/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);
|
/illumos-gate/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);
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | open.c | 212 void *tsd; local 217 tsd = (void *)calloc(1, sizeof(struct nsldapi_ldap_error)); 218 pthread_setspecific( nsldapi_key, tsd ); 224 free(tsd);
|
/illumos-gate/usr/src/lib/libmapid/common/ |
H A D | mapid.c | 1157 void *tsd = NULL; local 1159 (void) thr_getspecific(s_thr_key, &tsd); 1160 if (tsd == NULL) { 1161 tsd = malloc(NS_MAXCDNAME+1); 1162 if (tsd != NULL) { 1164 (void) strncpy((char *)tsd, mapid_domain, NS_MAXCDNAME); 1166 (void) thr_setspecific(s_thr_key, tsd); 1170 (void) strncpy((char *)tsd, mapid_domain, NS_MAXCDNAME); 1173 return ((char *)tsd);
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_main.c | 646 autofs_tsd_t *tsd = NULL; local 651 (void) thr_getspecific(s_thr_key, (void **)&tsd); 652 if (tsd == NULL) { 653 tsd = (autofs_tsd_t *)malloc(sizeof (autofs_tsd_t)); 654 if (tsd == NULL) { 657 tsd->atsd_buf = malloc(size); 658 if (tsd->atsd_buf != NULL) 659 tsd->atsd_len = size; 661 tsd->atsd_len = 0; 662 (void) thr_setspecific(s_thr_key, tsd); [all...] |
/illumos-gate/usr/src/uts/i86pc/os/cpupm/ |
H A D | cpu_acpi.c | 326 cpu_acpi_tsd_t *tsd; local 330 tsd = &CPU_ACPI_TSD(handle); 331 ret = cpu_acpi_cache_state_dependencies(handle, TSD_OBJ, tsd);
|
/illumos-gate/usr/src/uts/common/disp/ |
H A D | thread.c | 133 * forward declarations for internal thread specific data (tsd) 1493 struct tsd_thread *tsd; local 1512 for (tsd = tsd_list; tsd; tsd = tsd->ts_next) { 1516 if (key > tsd->ts_nkeys) 1521 if (tsd->ts_value[k] && tsd_destructor[k]) 1522 (*tsd_destructor[k])(tsd->ts_value[k]); 1526 tsd 1564 struct tsd_thread *tsd = t->t_tsd; local 1586 struct tsd_thread *tsd = t->t_tsd; local 1639 struct tsd_thread *tsd = curthread->t_tsd; local 1661 struct tsd_thread *tsd = curthread->t_tsd; local [all...] |
/illumos-gate/usr/src/uts/common/sys/scsi/generic/ |
H A D | mode.h | 416 tsd :1, /* tsd bit */ member in struct:parameter_control 422 tsd :1, /* tsd bit */
|
/illumos-gate/usr/src/lib/libsasl/lib/ |
H A D | common.c | 1114 void *tsd; local 1208 tsd = pthread_getspecific(errstring_key); 1209 if (tsd != NULL) 1210 free(tsd);
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_connmgmt.c | 157 void *tsd = NULL; local 161 rc = thr_getspecific(ns_mtckey, &tsd); 162 if (rc == 0 && tsd != NULL) 163 ns_mtckey_cleanup(tsd); 202 void *tsd; local 210 rc = thr_getspecific(ns_mtckey, &tsd); 211 if (rc == 0 && tsd != NULL) 215 tsd = (void *) calloc(1, sizeof (struct ldap_error)); 216 if (tsd == NULL) 218 rc = thr_setspecific(ns_mtckey, tsd); [all...] |
/illumos-gate/usr/src/cmd/idmap/idmapd/ |
H A D | dbutils.c | 122 idmap_tsd_t *tsd = (idmap_tsd_t *)key; local 123 if (tsd) { 124 if (tsd->db_db) 125 (void) sqlite_close(tsd->db_db); 126 if (tsd->cache_db) 127 (void) sqlite_close(tsd->cache_db); 128 free(tsd); 146 idmap_tsd_t *tsd; local 148 if ((tsd = pthread_getspecific(idmap_tsd_key)) == NULL) { 150 if ((tsd 372 idmap_tsd_t *tsd; local 411 idmap_tsd_t *tsd; local [all...] |
/illumos-gate/usr/src/uts/common/pcmcia/cs/ |
H A D | cs.c | 1243 cisdata_t *tsd, *tdd; local 1316 tsd = (tuple->CISOffset->data + 1319 *tdd++ = *tsd++;
|
/illumos-gate/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_brand.c | 220 void *tsd = NULL; local 243 if (thr_getspecific(key, &tsd)) 245 if (tsd == NULL) { 253 embufp = tsd;
|
/illumos-gate/usr/src/lib/libc/inc/ |
H A D | thr_uberdata.h | 286 * The tsd union is designed to burn a little memory (9 words) to make 291 typedef union tsd { union
|
/illumos-gate/usr/src/uts/common/sys/scsi/targets/ |
H A D | stdef.h | 1120 tsd : 1, /* target save disable */ member in struct:log_param 1126 tsd : 1, /* target save disable */ member in struct:log_param
|