2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * Functions for managing thread-local storage for LDAP, and in particular 2N/A * for managing storage of the LDAP error state. 2N/A /* which has the defintion for */ 2N/A /* struct ldap_extra_thread_fns */ 2N/A * Set up thread management functions for the specified LDAP session. 2N/A * Returns either LDAP_SUCCESS or -1. 2N/A "pthread_key_create_once_np failed (%s)",
2N/A "ldap_set_option LDAP_OPT_THREAD_FN_PTRS failed");
2N/A "ldap_set_option LDAP_OPT_EXTRA_THREAD_FN_PTRS failed");
2N/A "adutils_mutex_alloc: malloc failed (%s)",
2N/A "adutils_mutex_alloc: " 2N/A "pthread_mutex_init failed (%s)",
2N/A * Get the thread's local errno. 2N/A * Set the thread's local errno. 2N/A * Get a pointer to the thread's local LDAP error state structure. 2N/A * Lazily allocate the thread-local storage, so that we don't need 2N/A * initialization when each thread starts. 2N/A "adutils_get_lderrno_struct: calloc failed (%s)",
2N/A "adutils_get_lderrno_struct: " 2N/A "pthread_setspecific failed (%s)",
2N/A * Store an error report in the thread's local LDAP error state structure. 2N/A * Retrieve an error report from the thread's local LDAP error state structure. 2N/A * Free the thread's local LDAP error state structure.