home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / rpc / pmap_prot.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  3.2 KB  |  109 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. #ifndef _RPC_PMAPPROT_H
  11. #define _RPC_PMAPPROT_H
  12.  
  13. #ident    "@(#)/usr/include/rpc/pmap_prot.h.sl 1.1 4.0 12/08/90 45545 AT&T-USL"
  14.  
  15. /*    @(#)pmap_prot.h 1.19 88/11/28 SMI    */
  16.  
  17. /*
  18.  *          PROPRIETARY NOTICE (Combined)
  19.  *  
  20.  *  This source code is unpublished proprietary information
  21.  *  constituting, or derived under license from AT&T's Unix(r) System V.
  22.  *  In addition, portions of such source code were derived from Berkeley
  23.  *  4.3 BSD under license from the Regents of the University of
  24.  *  California.
  25.  *  
  26.  *  
  27.  *  
  28.  *          Copyright Notice 
  29.  *  
  30.  *  Notice of copyright on this source code product does not indicate 
  31.  *  publication.
  32.  *  
  33.  *      (c) 1986,1987,1988,1989  Sun Microsystems, Inc.
  34.  *      (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  35.  *                All rights reserved.
  36.  */
  37.  
  38. /*
  39.  * pmap_prot.h
  40.  * Protocol for the local binder service, or pmap.
  41.  *
  42.  * Copyright (C) 1984, Sun Microsystems, Inc.
  43.  *
  44.  * The following procedures are supported by the protocol:
  45.  *
  46.  * PMAPPROC_NULL() returns ()
  47.  *     takes nothing, returns nothing
  48.  *
  49.  * PMAPPROC_SET(struct pmap) returns (bool_t)
  50.  *     TRUE is success, FALSE is failure.  Registers the tuple
  51.  *    [prog, vers, prot, port].
  52.  *
  53.  * PMAPPROC_UNSET(struct pmap) returns (bool_t)
  54.  *    TRUE is success, FALSE is failure.  Un-registers pair
  55.  *    [prog, vers].  prot and port are ignored.
  56.  *
  57.  * PMAPPROC_GETPORT(struct pmap) returns (long unsigned).
  58.  *    0 is failure.  Otherwise returns the port number where the pair
  59.  *    [prog, vers] is registered.  It may lie!
  60.  *
  61.  * PMAPPROC_DUMP() RETURNS (struct pmaplist *)
  62.  *
  63.  * PMAPPROC_CALLIT(unsigned, unsigned, unsigned, string<>)
  64.  *     RETURNS (port, string<>);
  65.  * usage: encapsulatedresults = PMAPPROC_CALLIT(prog, vers, proc, encapsulatedargs);
  66.  *     Calls the procedure on the local machine.  If it is not registered,
  67.  *    this procedure is quite; ie it does not return error information!!!
  68.  *    This procedure only is supported on rpc/udp and calls via
  69.  *    rpc/udp.  This routine only passes null authentication parameters.
  70.  *    This file has no interface to xdr routines for PMAPPROC_CALLIT.
  71.  *
  72.  * The service supports remote procedure calls on udp/ip or tcp/ip socket 111.
  73.  */
  74.  
  75. #include <rpc/types.h>
  76.  
  77. #define PMAPPORT        ((u_short)111)
  78. #define PMAPPROG        ((u_long)100000)
  79. #define PMAPVERS        ((u_long)2)
  80. #define PMAPVERS_PROTO        ((u_long)2)
  81. #define PMAPVERS_ORIG        ((u_long)1)
  82.  
  83. #define PMAPPROC_NULL        ((u_long)0)
  84. #define PMAPPROC_SET        ((u_long)1)
  85. #define PMAPPROC_UNSET        ((u_long)2)
  86. #define PMAPPROC_GETPORT    ((u_long)3)
  87. #define PMAPPROC_DUMP        ((u_long)4)
  88. #define PMAPPROC_CALLIT        ((u_long)5)
  89.  
  90. struct pmap {
  91.     long unsigned pm_prog;
  92.     long unsigned pm_vers;
  93.     long unsigned pm_prot;
  94.     long unsigned pm_port;
  95. };
  96. typedef struct pmap PMAP;
  97. extern bool_t xdr_pmap();
  98.  
  99. struct pmaplist {
  100.     struct pmap pml_map;
  101.     struct pmaplist *pml_next;
  102. };
  103. typedef struct pmaplist PMAPLIST;
  104. #ifndef _KERNEL
  105. extern bool_t xdr_pmaplist();
  106. #endif
  107.  
  108. #endif    /* _RPC_PMAPPROT_H */
  109.