home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 29 Fixes_o / 29-Fixes_o.zip / prgcsd.exe / PMAP_PRO.H < prev    next >
Text File  |  1992-11-10  |  5KB  |  127 lines

  1. /********************************************************copyrite.xmc***/
  2. /*                                                                     */
  3. /*   Licensed Materials - Property of IBM                              */
  4. /*                                                                     */
  5. /*   This module is "Restricted Materials of IBM":                     */
  6. /*      Program Number:   5798RXW                                      */
  7. /*      Program Name:     IBM TCP/IP Version 1.2 for OS/2              */
  8. /*   (C) Copyright IBM Corporation. 1990, 1991.                        */
  9. /*                                                                     */
  10. /*   See IBM Copyright Instructions.                                   */
  11. /*                                                                     */
  12. /********************************************************copyrite.xmc***/
  13. /*
  14.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  15.  * unrestricted use provided that this legend is included on all tape
  16.  * media and as a part of the software program in whole or part.  Users
  17.  * may copy or modify Sun RPC without charge, but are not authorized
  18.  * to license or distribute it to anyone else except as part of a product or
  19.  * program developed by the user.
  20.  *
  21.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  22.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  23.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  24.  *
  25.  * Sun RPC is provided with no support and without any obligation on the
  26.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  27.  * modification or enhancement.
  28.  *
  29.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  30.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  31.  * OR ANY PART THEREOF.
  32.  *
  33.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  34.  * or profits or other special, indirect and consequential damages, even if
  35.  * Sun has been advised of the possibility of such damages.
  36.  *
  37.  * Sun Microsystems, Inc.
  38.  * 2550 Garcia Avenue
  39.  * Mountain View, California  94043
  40.  */
  41. /*      @(#)pmap_prot.h 1.1 86/02/03 SMI        */
  42.  
  43. /*
  44.  * pmap_prot.h
  45.  * Protocol for the local binder service, or pmap.
  46.  *
  47.  * Copyright (C) 1984, Sun Microsystems, Inc.
  48.  *
  49.  * The following procedures are supported by the protocol:
  50.  *
  51.  * PMAPPROC_NULL() returns ()
  52.  *      takes nothing, returns nothing
  53.  *
  54.  * PMAPPROC_SET(struct pmap) returns (bool_t)
  55.  *      TRUE is success, FALSE is failure.  Registers the tuple
  56.  *      [prog, vers, prot, port].
  57.  *
  58.  * PMAPPROC_UNSET(struct pmap) returns (bool_t)
  59.  *      TRUE is success, FALSE is failure.  Un-registers pair
  60.  *      [prog, vers].  prot and port are ignored.
  61.  *
  62.  * PMAPPROC_GETPORT(struct pmap) returns (long unsigned).
  63.  *      0 is failure.  Otherwise returns the port number where the pair
  64.  *      [prog, vers] is registered.  It may lie!
  65.  *
  66.  * PMAPPROC_DUMP() RETURNS (struct pmaplist *)
  67.  *
  68.  * PMAPPROC_CALLIT(unsigned, unsigned, unsigned, string<>)
  69.  *      RETURNS (port, string<>);
  70.  * usage: encapsulatedresults = PMAPPROC_CALLIT(prog, vers, proc, encapsulatedargs);
  71.  *      Calls the procedure on the local machine.  If it is not registered,
  72.  *      this procedure is quite; ie it does not return error information!!!
  73.  *      This procedure only is supported on rpc/udp and calls via
  74.  *      rpc/udp.  This routine only passes null authentication parameters.
  75.  *      This file has no interface to xdr routines for PMAPPROC_CALLIT.
  76.  *
  77.  * The service supports remote procedure calls on udp/ip or tcp/ip socket 111.
  78.  */
  79. #ifndef __32BIT__
  80. #define _Packed
  81. #define _Seg16
  82. #define _Far16
  83. #define _Cdecl
  84. #endif
  85.  
  86. #define PMAPPORT                ((u_short)111)
  87. #define PMAPPROG                ((u_long)100000L)
  88. #define PMAPVERS                ((u_long)2)
  89. #define PMAPVERS_PROTO          ((u_long)2)
  90. #define PMAPVERS_ORIG           ((u_long)1)
  91. #define PMAPPROC_NULL           ((u_long)0)
  92. #define PMAPPROC_SET            ((u_long)1)
  93. #define PMAPPROC_UNSET          ((u_long)2)
  94. #define PMAPPROC_GETPORT        ((u_long)3)
  95. #define PMAPPROC_DUMP           ((u_long)4)
  96. #define PMAPPROC_CALLIT         ((u_long)5)
  97.  
  98. struct pmap {
  99.         long unsigned pm_prog;
  100.         long unsigned pm_vers;
  101.         long unsigned pm_prot;
  102.         long unsigned pm_port;
  103. };
  104.  
  105. #if 0
  106. extern bool_t _Far16 _Cdecl xdr_pmap();
  107. #endif
  108.  
  109. struct pmaplist {
  110.         struct pmap     pml_map;
  111.         struct pmaplist * _Seg16 pml_next;
  112. };
  113.  
  114. #if 0
  115. extern bool_t _Far16 _Cdecl xdr_pmaplist();
  116. #endif
  117.  
  118. /* lint stuff */
  119. bool_t _Far16 _Cdecl pmap_set(u_long, u_long, u_long, u_short);
  120. bool_t _Far16 _Cdecl pmap_unset(u_long, u_long);
  121. short _Far16 _Cdecl get_myaddress( struct sockaddr_in * _Seg16);
  122. struct pmaplist * _Seg16 _Far16 _Cdecl pmap_getmaps( struct sockaddr_in * _Seg16);
  123. bool_t _Far16 _Cdecl xdr_pmap(XDR * _Seg16, void * _Seg16);
  124. bool_t _Far16 _Cdecl xdr_pmaplist(XDR *, struct pmaplist * _Seg16 * _Seg16);
  125. enum clnt_stat
  126. _Far16 _Cdecl pmap_rmtcall(struct sockaddr_in * _Seg16, u_long, u_long, u_long, xdrproc_t, char * _Seg16, xdrproc_t, char * _Seg16, struct timeval, u_long * _Seg16);
  127.