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 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
28 * DESCRIPTION: The N2L system is dependent on a number of utility functions
29 * supplied by NIS object code (under cmd/ypcmd). When libnisdb
30 * is loaded by executable other than those built under
31 * cmd/ypcmd (e.g. the NIS+ executables) these would be
32 * undefined. To prevent this happening the stubs in this file
33 * contain weak definitions on these functions. In the NIS case
34 * these weak definitions will be overridden by the real ones.
36 * The functions in this file will never be called. NIS will have
37 * overridden them and nothing else should call yptol. If they are
38 * called then there is a bug in the build system.
40 * Note : This is not elegant but it is a way of dealing with
41 * preexisting code structure.
44 #pragma ident "%Z%%M% %I% %E% SMI"
54 #include "../ldap_util.h"
58 * FUNCTION : disaster()
60 * DESCRIPTION: Called if the stubs is accidentally called.
65 logmsg(MSG_NOTIMECHECK
, LOG_ERR
, "YPTOL stub called. This indicates"
66 " a serious build error");
69 #pragma weak lock_core
71 lock_core(int hashval
)
77 #pragma weak unlock_core
79 unlock_core(int hashval
)
87 lock_map(char *mapname
)
93 #pragma weak unlock_map
95 unlock_map(char *mapname
)
101 #pragma weak init_lock_map
117 #pragma weak rename_map
119 rename_map(char *from
, char *to
, bool_t secure_map
)
125 #pragma weak delete_map
127 delete_map(char *name
)
138 int single
, nogecos
, noshell
, nopw
, mflag
;
140 #pragma weak validloginshell
142 validloginshell(char *sh
, char *arg
, int priv
)
148 #pragma weak validstr
150 validstr(char *str
, size_t size
)