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 #pragma ident "%Z%%M% %I% %E% SMI"
29 #include "ldap_glob.h"
31 /* These are the local versions we use if the app doesn't provide overrides */
35 int setColumnsDuringConfig
= 0;
38 __local_update_root_object(nis_name root_dir
, nis_object
*d_obj
) {
43 __local_get_root_object(void) {
48 __local_remove_root_object(nis_name root_dir
, nis_object
* d_obj
) {
53 __local_beginTransaction(void) {
58 __local_abort_transaction(int xid
) {
63 __local_endTransaction(int xid
, nis_object
*dirObj
) {
68 __local_addUpdate(log_entry_t type
, char *name
, int numAttr
, nis_attr
*attr
,
69 nis_object
*obj
, nis_object
*oldDir
, uint32_t ttime
) {
74 __local_lockTransLog(char *msg
, int wr
, int trylock
) {
79 __local_unlockTransLog(char *msg
, int wr
) {
83 __local__nis_lock_db_table(nis_name name
, int readwrite
, int *trylock
,
89 __local__nis_ulock_db_table(nis_name name
, int readwrite
, int remove
,
94 /* Weak symbol linkage allows override; default is local versions */
96 #pragma weak justTesting
98 #pragma weak setColumnsDuringConfig
99 #pragma weak update_root_object = __local_update_root_object
100 #pragma weak get_root_object = __local_get_root_object
101 #pragma weak remove_root_object = __local_remove_root_object
102 #pragma weak beginTransaction = __local_beginTransaction
103 #pragma weak abort_transaction = __local_abort_transaction
104 #pragma weak endTransaction = __local_endTransaction
105 #pragma weak addUpdate = __local_addUpdate
106 #pragma weak lockTransLog = __local_lockTransLog
107 #pragma weak unlockTransLog = __local_unlockTransLog
108 #pragma weak __nis_lock_db_table = __local__nis_lock_db_table
109 #pragma weak __nis_ulock_db_table = __local__nis_ulock_db_table