8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / libbc / inc / include / rpc / pmap_prot.h
blobe40fbf15af3ee61ec572902b9f002b4d11ba3130
1 /*
2 * CDDL HEADER START
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
7 * with the License.
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]
20 * CDDL HEADER END
22 #pragma ident "%Z%%M% %I% %E% SMI"
25 * pmap_prot.h
26 * Protocol for the local binder service, or pmap.
28 * Copyright (C) 1984, Sun Microsystems, Inc.
30 * The following procedures are supported by the protocol:
32 * PMAPPROC_NULL() returns ()
33 * takes nothing, returns nothing
35 * PMAPPROC_SET(struct pmap) returns (bool_t)
36 * TRUE is success, FALSE is failure. Registers the tuple
37 * [prog, vers, prot, port].
39 * PMAPPROC_UNSET(struct pmap) returns (bool_t)
40 * TRUE is success, FALSE is failure. Un-registers pair
41 * [prog, vers]. prot and port are ignored.
43 * PMAPPROC_GETPORT(struct pmap) returns (long unsigned).
44 * 0 is failure. Otherwise returns the port number where the pair
45 * [prog, vers] is registered. It may lie!
47 * PMAPPROC_DUMP() RETURNS (struct pmaplist *)
49 * PMAPPROC_CALLIT(unsigned, unsigned, unsigned, string<>)
50 * RETURNS (port, string<>);
51 * usage: encapsulatedresults =
52 * PMAPPROC_CALLIT(prog, vers, proc, encapsulatedargs);
53 * Calls the procedure on the local machine. If it is not registered,
54 * this procedure is quite; ie it does not return error information!!!
55 * This procedure only is supported on rpc/udp and calls via
56 * rpc/udp. This routine only passes null authentication parameters.
57 * This file has no interface to xdr routines for PMAPPROC_CALLIT.
59 * The service supports remote procedure calls on udp/ip or tcp/ip socket 111.
62 #ifndef _rpc_pmap_prot_h
63 #define _rpc_pmap_prot_h
65 #define PMAPPORT ((u_short)111)
66 #define PMAPPROG ((u_long)100000)
67 #define PMAPVERS ((u_long)2)
68 #define PMAPVERS_PROTO ((u_long)2)
69 #define PMAPVERS_ORIG ((u_long)1)
70 #define PMAPPROC_NULL ((u_long)0)
71 #define PMAPPROC_SET ((u_long)1)
72 #define PMAPPROC_UNSET ((u_long)2)
73 #define PMAPPROC_GETPORT ((u_long)3)
74 #define PMAPPROC_DUMP ((u_long)4)
75 #define PMAPPROC_CALLIT ((u_long)5)
77 struct pmap {
78 long unsigned pm_prog;
79 long unsigned pm_vers;
80 long unsigned pm_prot;
81 long unsigned pm_port;
84 extern bool_t xdr_pmap();
86 struct pmaplist {
87 struct pmap pml_map;
88 struct pmaplist *pml_next;
91 #ifndef KERNEL
92 extern bool_t xdr_pmaplist();
93 #endif /*!KERNEL*/
95 #endif /*!_rpc_pmap_prot_h*/