pmap_rmt.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:3k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* pmap_rmt.h - client interface to pmap rpc service header file - 4.0 */
  2. /* Copyright 1984-1992 Wind River Systems, Inc. */
  3. /* @(#)pmap_rmt.h 2.1 88/07/29 4.0 RPCSRC; from 1.2 88/02/08 SMI */
  4. /*
  5.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  6.  * unrestricted use provided that this legend is included on all tape
  7.  * media and as a part of the software program in whole or part.  Users
  8.  * may copy or modify Sun RPC without charge, but are not authorized
  9.  * to license or distribute it to anyone else except as part of a product or
  10.  * program developed by the user.
  11.  *
  12.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  13.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  14.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  15.  *
  16.  * Sun RPC is provided with no support and without any obligation on the
  17.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  18.  * modification or enhancement.
  19.  *
  20.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  21.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  22.  * OR ANY PART THEREOF.
  23.  *
  24.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  25.  * or profits or other special, indirect and consequential damages, even if
  26.  * Sun has been advised of the possibility of such damages.
  27.  *
  28.  * Sun Microsystems, Inc.
  29.  * 2550 Garcia Avenue
  30.  * Mountain View, California  94043
  31.  */
  32. /*
  33.  * Structures and XDR routines for parameters to and replies from
  34.  * the portmapper remote-call-service.
  35.  *
  36.  * Copyright (C) 1986, Sun Microsystems, Inc.
  37.  */
  38. /*
  39. modification history
  40. --------------------
  41. 01f,22sep92,rrr  added support for c++
  42. 01e,26may92,rrr  the tree shuffle
  43. 01d,04oct91,rrr  passed through the ansification filter
  44.   -fixed #else and #endif
  45.   -changed copyright notice
  46. 01c,24oct90,shl  deleted redundant function declarations. moved clnt_broadcast
  47.  and pmap_rmtcall prototypes to pmap_clnt.h.
  48. 01b,05oct90,shl  added ANSI function prototypes.
  49.                  added copyright notice.
  50. 01a,26oct89,hjb  first vxWorks version.
  51. */
  52. #ifndef __INCpmap_rmth
  53. #define __INCpmap_rmth
  54. #ifdef __cplusplus
  55. extern "C" {
  56. #endif
  57. struct rmtcallargs {
  58. u_long prog, vers, proc, arglen;
  59. caddr_t args_ptr;
  60. xdrproc_t xdr_args;
  61. };
  62. struct rmtcallres {
  63. u_long *port_ptr;
  64. u_long resultslen;
  65. caddr_t results_ptr;
  66. xdrproc_t xdr_results;
  67. };
  68. /* function declarations */
  69. #if defined(__STDC__) || defined(__cplusplus)
  70. extern   bool_t   xdr_rmtcall_args (XDR *xdrs, struct rmtcallargs *cap);
  71. extern   bool_t   xdr_rmtcallres (XDR *xdrs, struct rmtcallres *crp);
  72. #else
  73. extern   bool_t   xdr_rmtcall_args ();
  74. extern   bool_t   xdr_rmtcallres ();
  75. #endif /* __STDC__ */
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79. #endif /* __INCpmap_rmth */