2N/A/*
2N/A * CDDL HEADER START
2N/A *
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 *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
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 *
2N/A * CDDL HEADER END
2N/A */
2N/A
2N/A/*
2N/A * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A#ifndef _LDAP_GLOB_H
2N/A#define _LDAP_GLOB_H
2N/A
2N/A#include <stdio.h>
2N/A#include <rpcsvc/nis.h>
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A/*
2N/A * The following may be defined and set by the application. If not,
2N/A * we'll use local equivalents that disable the feature.
2N/A */
2N/Aextern int verbose;
2N/Aextern int justTesting;
2N/Aextern FILE *cons;
2N/Aextern int setColumnsDuringConfig;
2N/A
2N/A/*
2N/A * Functions that reside in rpc.nisd. We provide local do-nothing-return-
2N/A * failure incarnations that are there strictly to prevent a link error.
2N/A * If libnisdb calls one of these, we had better be running inside rpc.nisd.
2N/A */
2N/Aextern int update_root_object(const char *root_dir,
2N/A nis_object *d_obj);
2N/Aextern nis_object *get_root_object(void);
2N/Aextern int remove_root_object(nis_name root_dir,
2N/A nis_object* d_obj);
2N/Aextern int beginTransaction(void);
2N/Aextern int abort_transaction(int xid);
2N/Aextern int endTransaction(int xid, nis_object *dirObj);
2N/Aextern int addUpdate(log_entry_t type, char *name,
2N/A int numAttr, nis_attr *attr, nis_object *obj,
2N/A nis_object *oldDir, uint32_t ttime);
2N/Aextern int lockTransLog(const char *msg, int wr, int trylock);
2N/Aextern void unlockTransLog(const char *msg, int wr);
2N/Aextern int __nis_lock_db_table(nis_name name, int readwrite,
2N/A int *trylock, const char *msg);
2N/Aextern int __nis_ulock_db_table(nis_name name, int readwrite,
2N/A int remove, const char *msg);
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif /* __cplusplus */
2N/A
2N/A#endif /* _LDAP_GLOB_H */