summaryrefslogtreecommitdiff
path: root/usr/src/cmd/rpcsvc
diff options
context:
space:
mode:
authorrie <none@none>2007-05-17 16:27:31 -0700
committerrie <none@none>2007-05-17 16:27:31 -0700
commit24da5b34f49324ed742a340010ed5bd3d4e06625 (patch)
treed634cc86da07688eb2048c7bfeed71bedea99c80 /usr/src/cmd/rpcsvc
parent3230aa086e19b239f0306ae02bd82e788031cfef (diff)
downloadillumos-joyent-24da5b34f49324ed742a340010ed5bd3d4e06625.tar.gz
6455532 OSNet cleanup required in preparation for direct bindings
--HG-- rename : usr/src/cmd/bnu/strecpy.c => deleted_files/usr/src/cmd/bnu/strecpy.c rename : usr/src/cmd/fs.d/ufs/mount/realpath.c => deleted_files/usr/src/cmd/fs.d/ufs/mount/realpath.c rename : usr/src/cmd/lp/lib/lp/tinames.c => deleted_files/usr/src/cmd/lp/lib/lp/tinames.c rename : usr/src/cmd/sgs/crle/common/mapfile-vers => deleted_files/usr/src/cmd/sgs/crle/common/mapfile-vers rename : usr/src/cmd/sgs/elfdump/common/mapfile-vers => deleted_files/usr/src/cmd/sgs/elfdump/common/mapfile-vers rename : usr/src/cmd/sgs/ldd/common/mapfile-vers => deleted_files/usr/src/cmd/sgs/ldd/common/mapfile-vers rename : usr/src/cmd/sgs/moe/common/mapfile-vers => deleted_files/usr/src/cmd/sgs/moe/common/mapfile-vers rename : usr/src/cmd/sgs/pvs/common/mapfile-vers => deleted_files/usr/src/cmd/sgs/pvs/common/mapfile-vers rename : usr/src/lib/libsocket/amd64/byteorder.s => deleted_files/usr/src/lib/libsocket/amd64/byteorder.s rename : usr/src/lib/libsocket/i386/byteorder.s => deleted_files/usr/src/lib/libsocket/i386/byteorder.s rename : usr/src/cmd/sgs/ld/common/mapfile-vers => usr/src/cmd/sgs/ld/common/mapfile-intf rename : usr/src/cmd/sgs/mapfiles/Makefile => usr/src/common/mapfiles/Makefile rename : usr/src/cmd/sgs/mapfiles/amd64/Makefile => usr/src/common/mapfiles/amd64/Makefile rename : usr/src/cmd/sgs/mapfiles/amd64/map.above4G => usr/src/common/mapfiles/amd64/map.above4G rename : usr/src/cmd/sgs/mapfiles/amd64/map.below4G => usr/src/common/mapfiles/amd64/map.below4G rename : usr/src/cmd/sgs/mapfiles/common/Makefile => usr/src/common/mapfiles/common/Makefile rename : usr/src/cmd/mapfile_bssalign => usr/src/common/mapfiles/common/map.bssalign rename : usr/src/cmd/mapfile_execdata => usr/src/common/mapfiles/common/map.execdata rename : usr/src/lib/common/mapfile-filter => usr/src/common/mapfiles/common/map.filter rename : usr/src/cmd/mapfile_noexstk => usr/src/common/mapfiles/common/map.noexstk rename : usr/src/cmd/sgs/mapfiles/i386/Makefile => usr/src/common/mapfiles/i386/Makefile rename : usr/src/cmd/sgs/mapfiles/i386/map.default => usr/src/common/mapfiles/i386/map.default rename : usr/src/cmd/mapfile_noexdata => usr/src/common/mapfiles/i386/map.noexdata rename : usr/src/cmd/sgs/mapfiles/i386/map.pagealign => usr/src/common/mapfiles/i386/map.pagealign rename : usr/src/cmd/sgs/mapfiles/sparc/Makefile => usr/src/common/mapfiles/sparc/Makefile rename : usr/src/cmd/sgs/mapfiles/sparc/map.default => usr/src/common/mapfiles/sparc/map.default rename : usr/src/cmd/sgs/mapfiles/sparc/map.pagealign => usr/src/common/mapfiles/sparc/map.pagealign rename : usr/src/cmd/sgs/mapfiles/sparcv9/Makefile => usr/src/common/mapfiles/sparcv9/Makefile rename : usr/src/cmd/sgs/mapfiles/sparcv9/map.above4G => usr/src/common/mapfiles/sparcv9/map.above4G rename : usr/src/cmd/sgs/mapfiles/sparcv9/map.below4G => usr/src/common/mapfiles/sparcv9/map.below4G rename : usr/src/lib/libsocket/inet/byteorder.c => usr/src/lib/libc/sparc/gen/byteorder.c
Diffstat (limited to 'usr/src/cmd/rpcsvc')
-rw-r--r--usr/src/cmd/rpcsvc/nis/rpc.nisd/Makefile20
-rw-r--r--usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-nisldapmaptest37
-rw-r--r--usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-nislog39
-rw-r--r--usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-rpc.nisd51
-rw-r--r--usr/src/cmd/rpcsvc/nis/rpc.nisd/resolv_server/nget_answer.c11
-rw-r--r--usr/src/cmd/rpcsvc/nis/rpc.nisd/resolv_server/ngethostbyname.c49
-rw-r--r--usr/src/cmd/rpcsvc/nis/utils/Makefile14
-rw-r--r--usr/src/cmd/rpcsvc/nis/utils/mapfile-intf42
8 files changed, 217 insertions, 46 deletions
diff --git a/usr/src/cmd/rpcsvc/nis/rpc.nisd/Makefile b/usr/src/cmd/rpcsvc/nis/rpc.nisd/Makefile
index 9573df097c..0ae4fb7a91 100644
--- a/usr/src/cmd/rpcsvc/nis/rpc.nisd/Makefile
+++ b/usr/src/cmd/rpcsvc/nis/rpc.nisd/Makefile
@@ -2,9 +2,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -66,6 +65,13 @@ rpc.nisd := LDLIBS += -lnisdb -lldap
nisldapmaptest := LDLIBS += -lnisdb -lldap
LDLIBS += -lnsl -lc
+MAPFILE.INT.L = $(MAPFILE.NGB) mapfile-intf-nislog
+MAPFILE.INT.T = $(MAPFILE.NGB) mapfile-intf-nisldapmaptest
+MAPFILE.INT.R = $(MAPFILE.NGB) mapfile-intf-rpc.nisd
+nislog := LDFLAGS += $(MAPFILE.INT.L:%=-M%)
+nisldapmaptest := LDFLAGS += $(MAPFILE.INT.T:%=-M%)
+rpc.nisd := LDFLAGS += $(MAPFILE.INT.R:%=-M%)
+
SUBDIR= resolv_server configs
.KEEP_STATE:
@@ -89,7 +95,7 @@ lint: lint_SRCS
# Explicit link rules for the actual programs to get around the C++
# situation.
#
-nislog: $(LOG_OBJS)
+nislog: $(LOG_OBJS) $(MAPFILE.INT.L)
$(LINK.cc) -o $@ $(LOG_OBJS) $(LDLIBS)
$(POST_PROCESS)
@@ -97,11 +103,11 @@ nisinit: $(INIT_OBJS)
$(LINK.c) -o $@ $(INIT_OBJS) $(LDLIBS)
$(POST_PROCESS)
-rpc.nisd: $(SRV_OBJS)
+rpc.nisd: $(SRV_OBJS) $(MAPFILE.INT.R)
$(LINK.cc) -o $@ $(SRV_OBJS) $(LDLIBS)
$(POST_PROCESS)
-nisldapmaptest: $(NISLDAPMAPTEST_OBJS)
+nisldapmaptest: $(NISLDAPMAPTEST_OBJS) $(MAPFILE.INT.T)
$(LINK.cc) -o $@ $(NISLDAPMAPTEST_OBJS) $(LDLIBS)
$(POST_PROCESS)
diff --git a/usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-nisldapmaptest b/usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-nisldapmaptest
new file mode 100644
index 0000000000..f74141ab6a
--- /dev/null
+++ b/usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-nisldapmaptest
@@ -0,0 +1,37 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# ident "%Z%%M% %I% %E% SMI"
+#
+
+# nisldapmaptest interposes on a variety of symbols from libnisdb.
+{
+ global:
+ assertExclusive = INTERPOSE;
+ cons = INTERPOSE;
+ justTesting = INTERPOSE;
+ setColumnsDuringConfig = INTERPOSE;
+ verbose = INTERPOSE;
+};
diff --git a/usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-nislog b/usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-nislog
new file mode 100644
index 0000000000..abb934bbe2
--- /dev/null
+++ b/usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-nislog
@@ -0,0 +1,39 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# ident "%Z%%M% %I% %E% SMI"
+#
+
+# nislog interposes on a variety of symbols from libnsl and libnisdb.
+{
+ global:
+ __start_clock = INTERPOSE;
+ __stop_clock = INTERPOSE;
+ abort_transaction = INTERPOSE;
+ lockTransLog = INTERPOSE;
+ relative_name = INTERPOSE;
+ unlockTransLog = INTERPOSE;
+ verbose = INTERPOSE;
+};
diff --git a/usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-rpc.nisd b/usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-rpc.nisd
new file mode 100644
index 0000000000..9f4487d420
--- /dev/null
+++ b/usr/src/cmd/rpcsvc/nis/rpc.nisd/mapfile-intf-rpc.nisd
@@ -0,0 +1,51 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# ident "%Z%%M% %I% %E% SMI"
+#
+
+# rpc.nisd interposes on a variety of symbols from libnsl and libnisdb.
+{
+ global:
+ __nis_core_lookup = INTERPOSE;
+ __nis_finddirectory = INTERPOSE;
+ __nis_host_is_server = INTERPOSE;
+ __nis_lock_db_table = INTERPOSE;
+ __nis_ulock_db_table = INTERPOSE;
+ __start_clock = INTERPOSE;
+ __stop_clock = INTERPOSE;
+ abort_transaction = INTERPOSE;
+ addUpdate = INTERPOSE;
+ beginTransaction = INTERPOSE;
+ cons = INTERPOSE;
+ endTransaction = INTERPOSE;
+ get_root_object = INTERPOSE;
+ lockTransLog = INTERPOSE;
+ relative_name = INTERPOSE;
+ remove_root_object = INTERPOSE;
+ unlockTransLog = INTERPOSE;
+ update_root_object = INTERPOSE;
+ verbose = INTERPOSE;
+};
diff --git a/usr/src/cmd/rpcsvc/nis/rpc.nisd/resolv_server/nget_answer.c b/usr/src/cmd/rpcsvc/nis/rpc.nisd/resolv_server/nget_answer.c
index 8d668a31ef..13243be2d3 100644
--- a/usr/src/cmd/rpcsvc/nis/rpc.nisd/resolv_server/nget_answer.c
+++ b/usr/src/cmd/rpcsvc/nis/rpc.nisd/resolv_server/nget_answer.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,8 +19,8 @@
* CDDL HEADER END
*/
/*
- * Copyright (c) 1993,1998 by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
@@ -62,8 +61,6 @@ typedef union {
char ac;
} align;
-extern int h_errno;
-
static struct hostent *getanswer(const querybuf *, int, const char *, int);
extern int lookup_AF_type(struct cache_ent *chl);
extern uint16_t _getshort(const uchar_t *);
diff --git a/usr/src/cmd/rpcsvc/nis/rpc.nisd/resolv_server/ngethostbyname.c b/usr/src/cmd/rpcsvc/nis/rpc.nisd/resolv_server/ngethostbyname.c
index 4d89237863..2d3e5afaf6 100644
--- a/usr/src/cmd/rpcsvc/nis/rpc.nisd/resolv_server/ngethostbyname.c
+++ b/usr/src/cmd/rpcsvc/nis/rpc.nisd/resolv_server/ngethostbyname.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,8 +19,8 @@
* CDDL HEADER END
*/
/*
- * Copyright (c) 1993,1998 by Sun Microsystems, Inc.
- * All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
@@ -49,8 +48,6 @@
#define NO_DATA NO_ADDRESS
#endif
-int h_errno; /* defined here */
-
static void nres_abort_xmit(struct nres *);
static struct nres *nres_setup(char *,
void (*)(void *, struct hostent *, ulong_t, struct cache_ent *, int),
@@ -108,13 +105,13 @@ nres_gethostbyname(name, handler, info)
if (temp->tcp_socket >= 0)
(void) close(temp->tcp_socket);
h_errno = temp->h_errno;
- free((char *) temp);
- return ((struct nres *) 0);
+ free((char *)temp);
+ return ((struct nres *)0);
}
} else {
prnt(P_INFO, "nres-gethostbyname:setup failed.\n");
- return ((struct nres *) - 1);
+ return ((struct nres *)-1);
}
}
@@ -154,7 +151,7 @@ nres_gethostbyaddr(addr, len, type, handler, info)
strcpy(qp, "ip6.int");
break;
default:
- return ((struct nres *) 0);
+ return ((struct nres *)0);
}
temp = nres_setup(qbuf, handler, info);
@@ -173,13 +170,13 @@ nres_gethostbyaddr(addr, len, type, handler, info)
if (temp->tcp_socket >= 0)
(void) close(temp->tcp_socket);
h_errno = temp->h_errno;
- free((char *) temp);
- return ((struct nres *) 0);
+ free((char *)temp);
+ return ((struct nres *)0);
}
} else {
prnt(P_INFO, "nres-gethostbyaddr:setup failed.\n");
- return ((struct nres *) - 1);
+ return ((struct nres *)-1);
}
}
@@ -195,7 +192,7 @@ nres_dotimeout(as)
{
struct nres *temp;
- temp = (struct nres *) as->as_userptr;
+ temp = (struct nres *)as->as_userptr;
/*
* timeout
@@ -255,7 +252,7 @@ nres_abort_xmit(temp)
(void) close(temp->udp_socket);
if (temp->tcp_socket >= 0)
(void) close(temp->tcp_socket);
- free((char *) temp);
+ free((char *)temp);
}
}
@@ -279,7 +276,7 @@ nres_dosrch(temp)
type = temp->qtype;
prnt(P_INFO, "search \'%s\'.\n", temp->search_name);
temp->question_len = res_mkquery(QUERY, temp->search_name,
- C_IN, type, (uchar_t *) NULL, 0, NULL,
+ C_IN, type, (uchar_t *)NULL, 0, NULL,
(uchar_t *)temp->question, MAXPACKET);
if (temp->question_len < 0) {
temp->h_errno = NO_RECOVERY;
@@ -331,7 +328,7 @@ nres_dorecv(as)
struct in6_addr **a6;
void (*done) ();
- temp = (struct nres *) as->as_userptr;
+ temp = (struct nres *)as->as_userptr;
theans = NULL;
errno = 0;
status = nres_rcv(temp);
@@ -390,13 +387,13 @@ out:
if (theans->h_addrtype == AF_INET) {
theans->h_length = 4;
theans->h_addr_list[0] =
- (char *) &(temp->theaddr);
+ (char *)&(temp->theaddr);
} else {
theans->h_length = 16;
theans->h_addr_list[0] =
- (char *) &(temp->theaddr6);
+ (char *)&(temp->theaddr6);
}
- theans->h_addr_list[1] = (char *) 0;
+ theans->h_addr_list[1] = (char *)0;
if (temp->udp_socket >= 0)
(void) close(temp->udp_socket);
if (temp->tcp_socket >= 0)
@@ -421,7 +418,7 @@ out:
(void) close(again->udp_socket);
if (again->tcp_socket >= 0)
(void) close(again->tcp_socket);
- free((char *) again);
+ free((char *)again);
}
} else {
/* memory error */
@@ -431,7 +428,7 @@ out:
temp->h_errno);
}
- free((char *) temp);
+ free((char *)temp);
return;
} else if (temp->reverse == REVERSE_A) {
int found_addr = FALSE;
@@ -496,7 +493,7 @@ out:
(void) close(temp->udp_socket);
if (temp->tcp_socket >= 0)
(void) close(temp->tcp_socket);
- free((char *) temp);
+ free((char *)temp);
return; /* done running */
}
@@ -510,7 +507,7 @@ nres_register(a, b)
a->nres_rpc_as.as_timeout_flag = TRUE;
a->nres_rpc_as.as_timeout = nres_dotimeout;
a->nres_rpc_as.as_recv = nres_dorecv;
- a->nres_rpc_as.as_userptr = (char *) a;
+ a->nres_rpc_as.as_userptr = (char *)a;
return (rpc_as_register(&(a->nres_rpc_as)));
}
@@ -522,7 +519,7 @@ nres_setup(name, done, userinfo)
{
struct nres *tmp;
- tmp = (struct nres *) calloc(1, sizeof (struct nres));
+ tmp = (struct nres *)calloc(1, sizeof (struct nres));
if (tmp == NULL)
return (tmp);
(void) strncpy(tmp->name, name, MAXDNAME);
diff --git a/usr/src/cmd/rpcsvc/nis/utils/Makefile b/usr/src/cmd/rpcsvc/nis/utils/Makefile
index 8eb93fdecc..c53515f38a 100644
--- a/usr/src/cmd/rpcsvc/nis/utils/Makefile
+++ b/usr/src/cmd/rpcsvc/nis/utils/Makefile
@@ -2,9 +2,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
@@ -89,6 +88,9 @@ CPPFLAGS += -I$(SRC)/lib/libnsl/include -I$(SRC)/lib/libnisdb
LDLIBS += -lnsl util.a
nispasswd := LDLIBS = $(LDLIBS.cmd) -lnsl
+nisbackup := LDFLAGS += $(MAPFILE.INT:%=-M%)
+nisrestore := LDFLAGS += $(MAPFILE.INT:%=-M%)
+
LDLIBS += -lc
.KEEP_STATE:
@@ -133,11 +135,11 @@ $(ROOTNSLIB):
$(ROOTNSLIB)/%: % $(ROOTNSLIB)
$(INS.file)
-$(RESTORE_PROG): $(DERIVED_FILES) $(RESTORE_OBJS) util.a
+$(RESTORE_PROG): $(DERIVED_FILES) $(RESTORE_OBJS) util.a $(MAPFILE.INT)
$(LINK.cc) -o $@ $(RESTORE_OBJS) $(LDLIBS) -lnisdb
$(POST_PROCESS)
-$(BACKUP_PROG): $(DERIVED_FILES) $(BACKUP_OBJS) util.a
+$(BACKUP_PROG): $(DERIVED_FILES) $(BACKUP_OBJS) util.a $(MAPFILE.INT)
$(LINK.cc) -o $@ $(BACKUP_OBJS) $(LDLIBS) -lnisdb
$(POST_PROCESS)
diff --git a/usr/src/cmd/rpcsvc/nis/utils/mapfile-intf b/usr/src/cmd/rpcsvc/nis/utils/mapfile-intf
new file mode 100644
index 0000000000..9f5815c202
--- /dev/null
+++ b/usr/src/cmd/rpcsvc/nis/utils/mapfile-intf
@@ -0,0 +1,42 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
+# Use is subject to license terms.
+#
+# ident "%Z%%M% %I% %E% SMI"
+#
+
+# nisbackup interposes on a variety of symbols from libnsl and libnisdb. Reduce
+# all remaining symbols to locals.
+{
+ global:
+ __start_clock = INTERPOSE;
+ __stop_clock = INTERPOSE;
+ abort_transaction = INTERPOSE;
+ lockTransLog = INTERPOSE;
+ relative_name = INTERPOSE;
+ unlockTransLog = INTERPOSE;
+ verbose = INTERPOSE;
+ local:
+ *;
+};