Lines Matching defs:tsd
94 struct fmev_tsd *tsd;
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->ts_lasterr = FMEVERR_API;
131 tsd->ts_lasterr = FMEVERR_VERSION_MISMATCH;
146 struct fmev_tsd *tsd;
148 if ((tsd = pthread_getspecific(fmev_tsdkey)) != NULL) {
150 fmev_tsd_destructor((void *)tsd);
163 struct fmev_tsd *tsd;
167 if ((tsd = pthread_getspecific(fmev_tsdkey)) != NULL)
168 tsd->ts_lasterr = error;
185 struct fmev_tsd *tsd;
190 if ((tsd = pthread_getspecific(fmev_tsdkey)) == NULL)
193 return ((const fmev_err_t *)&tsd->ts_lasterr);