Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/ntirpc/rpc/pmap_prot.h
$ cat -n /usr/include/ntirpc/rpc/pmap_prot.h 1 /* 2 * pmap_prot.h 3 * Protocol for the local binder service, or pmap. 4 * 5 * Copyright (c) 2010, Oracle America, Inc. 6 * Copyright (c) 2013-2018 Red Hat, Inc. and/or its affiliates. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions are 10 * met: 11 * 12 * * Redistributions of source code must retain the above copyright 13 * notice, this list of conditions and the following disclaimer. 14 * * Redistributions in binary form must reproduce the above 15 * copyright notice, this list of conditions and the following 16 * disclaimer in the documentation and/or other materials 17 * provided with the distribution. 18 * * Neither the name of the "Oracle America, Inc." nor the names of its 19 * contributors may be used to endorse or promote products derived 20 * from this software without specific prior written permission. 21 * 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 25 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 26 * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 27 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 29 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 31 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 32 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 */ 35 36 #ifndef _RPC_PMAP_PROT_H 37 #define _RPC_PMAP_PROT_H 1 38 39 #if defined(__linux__) 40 #include
41 #endif 42 #include
43 44 __BEGIN_DECLS 45 /* The following procedures are supported by the protocol: 46 * 47 * PMAPPROC_NULL() returns () 48 * takes nothing, returns nothing 49 * 50 * PMAPPROC_SET(struct pmap) returns (bool) 51 * TRUE is success, FALSE is failure. Registers the tuple 52 * [prog, vers, prot, port]. 53 * 54 * PMAPPROC_UNSET(struct pmap) returns (bool) 55 * TRUE is success, FALSE is failure. Un-registers pair 56 * [prog, vers]. prot and port are ignored. 57 * 58 * PMAPPROC_GETPORT(struct pmap) returns (long unsigned). 59 * 0 is failure. Otherwise returns the port number where the pair 60 * [prog, vers] is registered. It may lie! 61 * 62 * PMAPPROC_DUMP() RETURNS (struct pmaplist *) 63 * 64 * PMAPPROC_CALLIT(unsigned, unsigned, unsigned, string<>) RETURNS 65 * (port, string<>); usage: encapsulatedresults = 66 * PMAPPROC_CALLIT(prog, vers, proc, encapsulatedargs); Calls the 67 * procedure on the local machine. If it is not registered, this 68 * procedure is quite; ie it does not return error information!!! 69 * This procedure only is supported on rpc/udp and calls via rpc/udp. 70 * This routine only passes null authentication parameters. This file 71 * has no interface to xdr routines for PMAPPROC_CALLIT. 72 * 73 * The service supports remote procedure calls on udp/ip or tcp/ip socket 111. 74 */ 75 #define PMAPPORT ((rpcport_t)111) 76 #define PMAPPROG ((rpcprog_t)100000) 77 #define PMAPVERS ((rpcvers_t)2) 78 #define PMAPVERS_PROTO ((rpcproc_t)2) 79 #define PMAPVERS_ORIG ((rpcproc_t)1) 80 #define PMAPPROC_NULL ((rpcproc_t)0) 81 #define PMAPPROC_SET ((rpcproc_t)1) 82 #define PMAPPROC_UNSET ((rpcproc_t)2) 83 #define PMAPPROC_GETPORT ((rpcproc_t)3) 84 #define PMAPPROC_DUMP ((rpcproc_t)4) 85 #define PMAPPROC_CALLIT ((rpcproc_t)5) 86 87 struct pmap { 88 rpcprog_t pm_prog; 89 rpcvers_t pm_vers; 90 rpcprot_t pm_prot; 91 rpcport_t pm_port; 92 }; 93 94 extern bool xdr_pmap(XDR *__xdrs, struct pmap *__regs); 95 96 struct pmaplist { 97 struct pmap pml_map; 98 struct pmaplist *pml_next; 99 }; 100 101 extern bool xdr_pmaplist(XDR *__xdrs, struct pmaplist **__rp); 102 103 __END_DECLS 104 #endif /* rpc/pmap_prot.h */
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™