/titanic_44/usr/src/lib/libnisdb/ |
H A D | nisdb_mt.cc | 44 nisdb_tsd_t *tsd = (nisdb_tsd_t *)key; in __nisdb_tsd_destroy() local 46 if (tsd != 0) { in __nisdb_tsd_destroy() 47 free(tsd); in __nisdb_tsd_destroy() 63 nisdb_tsd_t *tsd; in __nisdb_get_tsd() local 65 if ((tsd = (nisdb_tsd_t *)pthread_getspecific(nisdb_tsd_key)) == 0) { in __nisdb_get_tsd() 67 if ((tsd = (nisdb_tsd_t *)malloc(sizeof (*tsd))) != 0) { in __nisdb_get_tsd() 69 memset(tsd, 0, sizeof (*tsd)); in __nisdb_get_tsd() 71 if (pthread_setspecific(nisdb_tsd_key, tsd) != 0) { in __nisdb_get_tsd() 76 free(tsd); in __nisdb_get_tsd() 77 tsd = &nisdb_shared_tsd; in __nisdb_get_tsd() [all …]
|
H A D | nis_db.cc | 693 nisdb_tsd_t *tsd = __nisdb_get_tsd(); in dbDeleteObj() local 712 if (tsd == 0) in dbDeleteObj() 747 for (tmp = tsd->objDelList; tmp != 0; in dbDeleteObj() 757 nod->next = tsd->objDelList; in dbDeleteObj() 758 tsd->objDelList = nod; in dbDeleteObj()
|
/titanic_44/usr/src/lib/fm/libfmevent/common/ |
H A D | fmev_util.c | 93 struct fmev_tsd *tsd; in fmev_api_enter() local 106 if ((tsd = pthread_getspecific(fmev_tsdkey)) == NULL) { in fmev_api_enter() 107 if ((tsd = umem_alloc(sizeof (*tsd), UMEM_DEFAULT)) == NULL || in fmev_api_enter() 108 pthread_setspecific(fmev_tsdkey, (const void *)tsd) != 0) { in fmev_api_enter() 109 if (tsd) in fmev_api_enter() 110 umem_free(tsd, sizeof (*tsd)); in fmev_api_enter() 115 tsd->ts_lasterr = 0; in fmev_api_enter() 121 tsd->ts_lasterr = FMEVERR_API; in fmev_api_enter() 130 tsd->ts_lasterr = FMEVERR_VERSION_MISMATCH; in fmev_api_enter() 145 struct fmev_tsd *tsd; in fmev_api_freetsd() local [all …]
|
/titanic_44/usr/src/uts/common/disp/ |
H A D | thread.c | 1493 struct tsd_thread *tsd; in tsd_destroy() local 1512 for (tsd = tsd_list; tsd; tsd = tsd->ts_next) { in tsd_destroy() 1516 if (key > tsd->ts_nkeys) in tsd_destroy() 1521 if (tsd->ts_value[k] && tsd_destructor[k]) in tsd_destroy() 1522 (*tsd_destructor[k])(tsd->ts_value[k]); in tsd_destroy() 1526 tsd->ts_value[k] = NULL; in tsd_destroy() 1564 struct tsd_thread *tsd = t->t_tsd; in tsd_agent_get() local 1569 if (key && tsd != NULL && key <= tsd->ts_nkeys) in tsd_agent_get() 1570 return (tsd->ts_value[key - 1]); in tsd_agent_get() 1586 struct tsd_thread *tsd = t->t_tsd; in tsd_agent_set() local [all …]
|
/titanic_44/usr/src/cmd/fs.d/autofs/ |
H A D | autod_main.c | 646 autofs_tsd_t *tsd = NULL; in autofs_get_buffer() local 651 (void) thr_getspecific(s_thr_key, (void **)&tsd); in autofs_get_buffer() 652 if (tsd == NULL) { in autofs_get_buffer() 653 tsd = (autofs_tsd_t *)malloc(sizeof (autofs_tsd_t)); in autofs_get_buffer() 654 if (tsd == NULL) { in autofs_get_buffer() 657 tsd->atsd_buf = malloc(size); in autofs_get_buffer() 658 if (tsd->atsd_buf != NULL) in autofs_get_buffer() 659 tsd->atsd_len = size; in autofs_get_buffer() 661 tsd->atsd_len = 0; in autofs_get_buffer() 662 (void) thr_setspecific(s_thr_key, tsd); in autofs_get_buffer() [all …]
|
/titanic_44/usr/src/lib/libnsl/rpc/ |
H A D | mt_misc.c | 183 struct rpc_err *tsd; in __rpc_callerr() local 187 tsd = thr_get_storage(&rpc_callerr_key, sizeof (struct rpc_err), free); in __rpc_callerr() 188 if (tsd == NULL) { in __rpc_callerr() 192 return (tsd); in __rpc_callerr()
|
/titanic_44/usr/src/lib/libmapid/common/ |
H A D | mapid.c | 1157 void *tsd = NULL; in mapid_get_domain() local 1159 (void) thr_getspecific(s_thr_key, &tsd); in mapid_get_domain() 1160 if (tsd == NULL) { in mapid_get_domain() 1161 tsd = malloc(NS_MAXCDNAME+1); in mapid_get_domain() 1162 if (tsd != NULL) { in mapid_get_domain() 1164 (void) strncpy((char *)tsd, mapid_domain, NS_MAXCDNAME); in mapid_get_domain() 1166 (void) thr_setspecific(s_thr_key, tsd); in mapid_get_domain() 1170 (void) strncpy((char *)tsd, mapid_domain, NS_MAXCDNAME); in mapid_get_domain() 1173 return ((char *)tsd); in mapid_get_domain()
|
/titanic_44/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) in adutils_lderrno_destructor() argument 262 struct adutils_lderrno *le = tsd; in adutils_lderrno_destructor()
|
/titanic_44/usr/src/lib/rpcsec_gss/ |
H A D | rpcsec_gss.c | 907 rpc_gss_error_t *tsd; in __rpc_gss_err() local 913 tsd = pthread_getspecific(rpc_gss_err_key); in __rpc_gss_err() 914 if (tsd == NULL) { in __rpc_gss_err() 915 tsd = (rpc_gss_error_t *)calloc(1, sizeof (rpc_gss_error_t)); in __rpc_gss_err() 916 if (thr_setspecific(rpc_gss_err_key, tsd) != 0) { in __rpc_gss_err() 917 if (tsd) in __rpc_gss_err() 918 free(tsd); in __rpc_gss_err() 922 return (tsd); in __rpc_gss_err()
|
/titanic_44/usr/src/cmd/idmap/idmapd/ |
H A D | dbutils.c | 122 idmap_tsd_t *tsd = (idmap_tsd_t *)key; in idmap_tsd_destroy() local 123 if (tsd) { in idmap_tsd_destroy() 124 if (tsd->db_db) in idmap_tsd_destroy() 125 (void) sqlite_close(tsd->db_db); in idmap_tsd_destroy() 126 if (tsd->cache_db) in idmap_tsd_destroy() 127 (void) sqlite_close(tsd->cache_db); in idmap_tsd_destroy() 128 free(tsd); in idmap_tsd_destroy() 146 idmap_tsd_t *tsd; in idmap_get_tsd() local 148 if ((tsd = pthread_getspecific(idmap_tsd_key)) == NULL) { in idmap_get_tsd() 150 if ((tsd = malloc(sizeof (*tsd))) != NULL) { in idmap_get_tsd() [all …]
|
/titanic_44/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | open.c | 212 void *tsd; in set_ld_error() local 217 tsd = (void *)calloc(1, sizeof(struct nsldapi_ldap_error)); in set_ld_error() 218 pthread_setspecific( nsldapi_key, tsd ); in set_ld_error() 224 free(tsd); in set_ld_error()
|
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | Makefile.files | 79 tsd.c \
|
/titanic_44/usr/src/lib/libsldap/common/ |
H A D | ns_connmgmt.c | 157 void *tsd = NULL; in conn_tsd_free() local 161 rc = thr_getspecific(ns_mtckey, &tsd); in conn_tsd_free() 162 if (rc == 0 && tsd != NULL) in conn_tsd_free() 163 ns_mtckey_cleanup(tsd); in conn_tsd_free() 202 void *tsd; in conn_tsd_setup() local 210 rc = thr_getspecific(ns_mtckey, &tsd); in conn_tsd_setup() 211 if (rc == 0 && tsd != NULL) in conn_tsd_setup() 215 tsd = (void *) calloc(1, sizeof (struct ldap_error)); in conn_tsd_setup() 216 if (tsd == NULL) in conn_tsd_setup() 218 rc = thr_setspecific(ns_mtckey, tsd); in conn_tsd_setup() [all …]
|
/titanic_44/usr/src/uts/common/sys/scsi/generic/ |
H A D | mode.h | 434 tsd :1, /* tsd bit */ member 440 tsd :1, /* tsd bit */
|
/titanic_44/usr/src/uts/i86pc/os/cpupm/ |
H A D | cpu_acpi.c | 326 cpu_acpi_tsd_t *tsd; in cpu_acpi_cache_tsd() local 330 tsd = &CPU_ACPI_TSD(handle); in cpu_acpi_cache_tsd() 331 ret = cpu_acpi_cache_state_dependencies(handle, TSD_OBJ, tsd); in cpu_acpi_cache_tsd()
|
/titanic_44/usr/src/lib/brand/solaris10/s10_brand/common/ |
H A D | s10_brand.c | 219 void *tsd = NULL; in mntfs_get_mntentbuf() local 242 if (thr_getspecific(key, &tsd)) in mntfs_get_mntentbuf() 244 if (tsd == NULL) { in mntfs_get_mntentbuf() 252 embufp = tsd; in mntfs_get_mntentbuf()
|
/titanic_44/usr/src/uts/common/sys/scsi/targets/ |
H A D | stdef.h | 1120 tsd : 1, /* target save disable */ 1126 tsd : 1, /* target save disable */ member
|
/titanic_44/usr/src/lib/libsasl/lib/ |
H A D | common.c | 1114 void *tsd; in sasl_errstring() local 1208 tsd = pthread_getspecific(errstring_key); in sasl_errstring() 1209 if (tsd != NULL) in sasl_errstring() 1210 free(tsd); in sasl_errstring()
|
/titanic_44/usr/src/lib/libc/amd64/ |
H A D | Makefile | 840 tsd.o 1147 tsd.o
|
/titanic_44/usr/src/lib/libc/sparcv9/ |
H A D | Makefile.com | 857 tsd.o 1166 tsd.o \
|
/titanic_44/usr/src/lib/libc/i386/ |
H A D | Makefile.com | 884 tsd.o 1205 tsd.o \
|
/titanic_44/usr/src/lib/libc/sparc/ |
H A D | Makefile.com | 912 tsd.o 1236 tsd.o \
|
/titanic_44/usr/src/lib/libc/inc/ |
H A D | thr_uberdata.h | 291 typedef union tsd { union
|
/titanic_44/usr/src/uts/common/pcmcia/cs/ |
H A D | cs.c | 1243 cisdata_t *tsd, *tdd; in cs_get_tuple_data() local 1316 tsd = (tuple->CISOffset->data + in cs_get_tuple_data() 1319 *tdd++ = *tsd++; in cs_get_tuple_data()
|