source: rtems/cpukit/librpc/include/rpc/rpc.h @ 2538e7ae

4.104.114.84.95
Last change on this file since 2538e7ae was 2538e7ae, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/03/05 at 16:26:35

2005-02-03 Ralf Corsepius <ralf.corsepius@…>

  • librpc/include/rpc/clnt_stat.h, librpc/include/rpc/rpcent.h: New (From FreeBSD).
  • librpc/include/rpc/rpc.h: Partial update from FreeBSD.
  • librpc/Makefile.am: Reflect changes above.
  • Property mode set to 100644
File size: 3.9 KB
RevLine 
[2538e7ae]1/*      $NetBSD: rpc.h,v 1.13 2000/06/02 22:57:56 fvdl Exp $    */
2
[4721cf1]3/*
4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part.  Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or
9 * program developed by the user.
[df49c60]10 *
[4721cf1]11 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
[df49c60]12 * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
[4721cf1]13 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
[df49c60]14 *
[4721cf1]15 * Sun RPC is provided with no support and without any obligation on the
16 * part of Sun Microsystems, Inc. to assist in its use, correction,
17 * modification or enhancement.
18 *
19 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
20 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
21 * OR ANY PART THEREOF.
22 *
23 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
24 * or profits or other special, indirect and consequential damages, even if
25 * Sun has been advised of the possibility of such damages.
26 *
27 * Sun Microsystems, Inc.
28 * 2550 Garcia Avenue
29 * Mountain View, California  94043
[df49c60]30 *
31 *      from: @(#)rpc.h 1.9 88/02/08 SMI
32 *      from: @(#)rpc.h 2.4 89/07/11 4.0 RPCSRC
[2538e7ae]33 * $FreeBSD: src/include/rpc/rpc.h,v 1.17 2002/03/23 17:24:55 imp Exp $
[4721cf1]34 */
35
36/*
37 * rpc.h, Just includes the billions of rpc header files necessary to
38 * do remote procedure calling.
39 *
40 * Copyright (C) 1984, Sun Microsystems, Inc.
41 */
[df49c60]42#ifndef _RPC_RPC_H
43#define _RPC_RPC_H
[4721cf1]44
45#include <rpc/types.h>          /* some typedefs */
46#include <netinet/in.h>
47
48/* external data representation interfaces */
49#include <rpc/xdr.h>            /* generic (de)serializer */
50
51/* Client side only authentication */
52#include <rpc/auth.h>           /* generic authenticator (client side) */
53
54/* Client side (mostly) remote procedure call */
55#include <rpc/clnt.h>           /* generic rpc stuff */
56
57/* semi-private protocol headers */
58#include <rpc/rpc_msg.h>        /* protocol for rpc messages */
[df49c60]59#include <rpc/auth_unix.h>      /* protocol for unix style cred */
[4721cf1]60/*
[df49c60]61 *  Uncomment-out the next line if you are building the rpc library with
[4721cf1]62 *  DES Authentication (see the README file in the secure_rpc/ directory).
63 */
[df49c60]64#include <rpc/auth_des.h>       /* protocol for des style cred */
[4721cf1]65
66/* Server side only remote procedure callee */
67#include <rpc/svc.h>            /* service manager and multiplexer */
68#include <rpc/svc_auth.h>       /* service side authenticator */
69
[2538e7ae]70#include <rpc/rpcent.h>
[4721cf1]71
[df49c60]72__BEGIN_DECLS
[2538e7ae]73extern int get_myaddress(struct sockaddr_in *);
74extern int bindresvport(int, struct sockaddr_in *);
75extern int bindresvport_sa(int, struct sockaddr *);
[df49c60]76__END_DECLS
77
78int rtems_rpc_task_init (void);
79int rtems_rpc_start_portmapper (int priority);
80
81#ifdef _RTEMS_RPC_INTERNAL_
82/*
83 * Multi-threaded support
84 * Group all global and static variables into a single spot.
85 * This area will be allocated on a per-task basis
86 */
[d16b2d3]87struct _rtems_rpc_task_variables {
[df49c60]88        int             svc_svc_maxfd;
89        fd_set          svc_svc_fdset;
[ddb56f4]90        SVCXPRT **      svc_xports;
[df49c60]91        int             svc_xportssize;
92        int             svc__svc_fdsetsize;
[ddb56f4]93        fd_set          *svc__svc_fdset;
94        struct svc_callout      *svc_svc_head;
[df49c60]95
[ddb56f4]96        char            *clnt_perror_buf;
[df49c60]97
[ddb56f4]98        struct clnt_raw_private *clnt_raw_private;
[df49c60]99
100        void            *call_rpc_private;
101
[ddb56f4]102        struct call_rpc_private *svc_raw_private;
[df49c60]103
[ddb56f4]104        struct prog_lst *svc_simple_proglst;
105        struct prog_lst *svc_simple_pl;
106        SVCXPRT         *svc_simple_transp;
[df49c60]107
[ddb56f4]108        char            *rpcdname_default_domain;
[df49c60]109
[ddb56f4]110        struct authsvc *svc_auths_Auths;
[df49c60]111};
[d16b2d3]112extern struct _rtems_rpc_task_variables *rtems_rpc_task_variables;
[df49c60]113
[d16b2d3]114#define svc_maxfd (rtems_rpc_task_variables->svc_svc_maxfd)
[ddb56f4]115#define svc_fdset (rtems_rpc_task_variables->svc_svc_fdset)
[d16b2d3]116#define __svc_fdsetsize (rtems_rpc_task_variables->svc__svc_fdsetsize)
[ddb56f4]117#define __svc_fdset (rtems_rpc_task_variables->svc__svc_fdset)
[4721cf1]118
[df49c60]119#endif /* _RTEMS_RPC_INTERNAL_ */
[4721cf1]120
[df49c60]121#endif /* !_RPC_RPC_H */
Note: See TracBrowser for help on using the repository browser.