Lines Matching defs:le
185 struct adutils_lderrno *le;
188 le = pthread_getspecific(adutils_lderrno_key);
189 if (le == NULL) {
190 le = calloc(1, sizeof (*le));
191 if (le == NULL) {
197 rc = pthread_setspecific(adutils_lderrno_key, le);
203 free(le);
208 return (le);
219 struct adutils_lderrno *le;
221 le = adutils_get_lderrno_struct();
222 if (le != NULL) {
223 le->le_errno = err;
224 if (le->le_matched != NULL)
225 ldap_memfree(le->le_matched);
226 le->le_matched = matched;
227 if (le->le_errmsg != NULL)
228 ldap_memfree(le->le_errmsg);
229 le->le_errmsg = errmsg;
241 struct adutils_lderrno *le;
244 le = adutils_get_lderrno_struct();
245 if (le == NULL)
246 le = ∅
249 *matched = le->le_matched;
251 *errmsg = le->le_errmsg;
252 return (le->le_errno);
262 struct adutils_lderrno *le = tsd;
264 if (le == NULL)
267 if (le->le_matched != NULL) {
268 ldap_memfree(le->le_matched);
269 le->le_matched = NULL;
271 if (le->le_errmsg != NULL) {
272 ldap_memfree(le->le_errmsg);
273 le->le_errmsg = NULL;
275 free(le);