about summary refs log tree commit diff
path: root/include/rpc
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-12-21 14:38:26 +0000
committerAndreas Jaeger <aj@suse.de>2000-12-21 14:38:26 +0000
commit6b083d46e4f8de4d50daa6e12a1692bc744e2b9a (patch)
tree4dec8b7b628bef4c829ec83ae3f5e6bc78ee635b /include/rpc
parente3bb40e6bff112c40fd7a3afaade03d564b4a95a (diff)
downloadglibc-6b083d46e4f8de4d50daa6e12a1692bc744e2b9a.tar.gz
glibc-6b083d46e4f8de4d50daa6e12a1692bc744e2b9a.tar.xz
glibc-6b083d46e4f8de4d50daa6e12a1692bc744e2b9a.zip
* nis/nss_nisplus/nisplus-ethers.c (struct etherent): Removed.
* inet/ether_hton.c: Likewise 
* inet/ether_ntoh.c: Likewise.
	* nis/nss_nis/nis-ethers.c (_nss_nis_getntohost_r): Fix
	declaration to match prototype.

	* include/netinet/ether.h (struct etherent): Declare here so that
	all implementations use the same struct.

	* nis/nss_nis/nis-ethers.c: Include netinet/ether.h to get
	prototypes.
	(struct ether): Removed.
	Use struct etherent instead of ether everywhere.

	* include/rpc/auth.h (DECLARE_NSS_PROTOTYPES): New.

	* include/rpc/auth_des.h (DECLARE_NSS_PROTOTYPES): New.

	* sunrpc/publickey.c: Include auth_des.h for prototypes.
Diffstat (limited to 'include/rpc')
-rw-r--r--include/rpc/auth.h14
-rw-r--r--include/rpc/auth_des.h17
2 files changed, 31 insertions, 0 deletions
diff --git a/include/rpc/auth.h b/include/rpc/auth.h
index 5721091a56..40e95011d6 100644
--- a/include/rpc/auth.h
+++ b/include/rpc/auth.h
@@ -1 +1,15 @@
+#ifndef _RPC_AUTH_H
 #include <sunrpc/rpc/auth.h>
+
+#define DECLARE_NSS_PROTOTYPES(service)					\
+extern enum nss_status _nss_ ##service ## _netname2user			\
+                       (char netname[MAXNETNAMELEN + 1], uid_t *uidp,	\
+			gid_t *gidp, int *gidlenp, gid_t *gidlist,	\
+			int *errnop);
+
+DECLARE_NSS_PROTOTYPES (nis)
+DECLARE_NSS_PROTOTYPES (nisplus)
+
+#undef DECLARE_NSS_PROTOTYPES
+
+#endif
diff --git a/include/rpc/auth_des.h b/include/rpc/auth_des.h
index 02736aa03b..fa3622728b 100644
--- a/include/rpc/auth_des.h
+++ b/include/rpc/auth_des.h
@@ -1 +1,18 @@
+#ifndef _RPC_AUTH_DES_H
+
 #include <sunrpc/rpc/auth_des.h>
+
+#define DECLARE_NSS_PROTOTYPES(service)					\
+extern enum nss_status _nss_ ## service ## _getpublickey		\
+                       (const char *netname, char *pkey, int *errnop);	\
+extern enum nss_status _nss_ ## service ## _getsecretkey		\
+                       (const char *netname, char *skey, char *passwd,	\
+			int *errnop);
+
+DECLARE_NSS_PROTOTYPES (files)
+DECLARE_NSS_PROTOTYPES (nis)
+DECLARE_NSS_PROTOTYPES (nisplus)
+
+#undef DECLARE_NSS_PROTOTYPES
+
+#endif