4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 2001 by Sun Microsystems, Inc.
24 * All rights reserved.
27 #include "ldap_glob.h"
29 /* These are the local versions we use if the app doesn't provide overrides */
33 int setColumnsDuringConfig
= 0;
36 __local_update_root_object(nis_name root_dir
, nis_object
*d_obj
) {
41 __local_get_root_object(void) {
46 __local_remove_root_object(nis_name root_dir
, nis_object
* d_obj
) {
51 __local_beginTransaction(void) {
56 __local_abort_transaction(int xid
) {
61 __local_endTransaction(int xid
, nis_object
*dirObj
) {
66 __local_addUpdate(log_entry_t type
, char *name
, int numAttr
, nis_attr
*attr
,
67 nis_object
*obj
, nis_object
*oldDir
, uint32_t ttime
) {
72 __local_lockTransLog(const char *msg
, int wr
, int trylock
) {
77 __local_unlockTransLog(const char *msg
, int wr
) {
81 __local__nis_lock_db_table(nis_name name
, int readwrite
, int *trylock
,
87 __local__nis_ulock_db_table(nis_name name
, int readwrite
, int remove
,
92 /* Weak symbol linkage allows override; default is local versions */
94 #pragma weak justTesting
96 #pragma weak setColumnsDuringConfig
97 #pragma weak update_root_object = __local_update_root_object
98 #pragma weak get_root_object = __local_get_root_object
99 #pragma weak remove_root_object = __local_remove_root_object
100 #pragma weak beginTransaction = __local_beginTransaction
101 #pragma weak abort_transaction = __local_abort_transaction
102 #pragma weak endTransaction = __local_endTransaction
103 #pragma weak addUpdate = __local_addUpdate
104 #pragma weak lockTransLog = __local_lockTransLog
105 #pragma weak unlockTransLog = __local_unlockTransLog
106 #pragma weak __nis_lock_db_table = __local__nis_lock_db_table
107 #pragma weak __nis_ulock_db_table = __local__nis_ulock_db_table