Lines Matching refs:tsd
159 void *tsd = NULL; in conn_tsd_free() local
163 rc = thr_getspecific(ns_mtckey, &tsd); in conn_tsd_free()
164 if (rc == 0 && tsd != NULL) in conn_tsd_free()
165 ns_mtckey_cleanup(tsd); in conn_tsd_free()
204 void *tsd; in conn_tsd_setup() local
212 rc = thr_getspecific(ns_mtckey, &tsd); in conn_tsd_setup()
213 if (rc == 0 && tsd != NULL) in conn_tsd_setup()
217 tsd = (void *) calloc(1, sizeof (struct ldap_error)); in conn_tsd_setup()
218 if (tsd == NULL) in conn_tsd_setup()
220 rc = thr_setspecific(ns_mtckey, tsd); in conn_tsd_setup()
222 free(tsd); in conn_tsd_setup()