Merge in changes from NetBSD's rpc library.
[unix-history] / lib / librpc / rpc / pmap_prot.h
index ccf7a77..5b84a4b 100644 (file)
@@ -1,4 +1,3 @@
-/* @(#)pmap_prot.h     2.1 88/07/29 4.0 RPCSRC; from 1.14 88/02/08 SMI */
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  * unrestricted use provided that this legend is included on all tape
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  * unrestricted use provided that this legend is included on all tape
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
  * Sun Microsystems, Inc.
  * 2550 Garcia Avenue
  * Mountain View, California  94043
+ *
+ *     from: @(#)pmap_prot.h 1.14 88/02/08 SMI 
+ *     from: @(#)pmap_prot.h   2.1 88/07/29 4.0 RPCSRC
+ *     $Id: pmap_prot.h,v 1.3 1993/08/01 18:45:55 mycroft Exp $
  */
 
 /*
  */
 
 /*
  * The service supports remote procedure calls on udp/ip or tcp/ip socket 111.
  */
 
  * The service supports remote procedure calls on udp/ip or tcp/ip socket 111.
  */
 
+#ifndef _RPC_PMAPPROT_H
+#define _RPC_PMAPPROT_H
+#include <sys/cdefs.h>
+
 #define PMAPPORT               ((u_short)111)
 #define PMAPPROG               ((u_long)100000)
 #define PMAPVERS               ((u_long)2)
 #define PMAPPORT               ((u_short)111)
 #define PMAPPROG               ((u_long)100000)
 #define PMAPVERS               ((u_long)2)
@@ -84,11 +91,14 @@ struct pmap {
        long unsigned pm_port;
 };
 
        long unsigned pm_port;
 };
 
-extern bool_t xdr_pmap();
-
 struct pmaplist {
        struct pmap     pml_map;
        struct pmaplist *pml_next;
 };
 
 struct pmaplist {
        struct pmap     pml_map;
        struct pmaplist *pml_next;
 };
 
-extern bool_t xdr_pmaplist();
+__BEGIN_DECLS
+extern bool_t xdr_pmap         __P((XDR *, struct pmap *));
+extern bool_t xdr_pmaplist     __P((XDR *, struct pmaplist **));
+__END_DECLS
+
+#endif /* !_RPC_PMAPPROT_H */