Lines Matching refs:tsd
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()
220 free(tsd); in conn_tsd_setup()