source: rtems/cpukit/librpc/include/rpc/rpc.h @ f26145b

4.104.114.84.95
Last change on this file since f26145b 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
Line 
1/*      $NetBSD: rpc.h,v 1.13 2000/06/02 22:57:56 fvdl Exp $    */
2
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.
10 *
11 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
12 * WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
13 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
14 *
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
30 *
31 *      from: @(#)rpc.h 1.9 88/02/08 SMI
32 *      from: @(#)rpc.h 2.4 89/07/11 4.0 RPCSRC
33 * $FreeBSD: src/include/rpc/rpc.h,v 1.17 2002/03/23 17:24:55 imp Exp $
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 */
42#ifndef _RPC_RPC_H
43#define _RPC_RPC_H
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 */
59#include <rpc/auth_unix.h>      /* protocol for unix style cred */
60/*
61 *  Uncomment-out the next line if you are building the rpc library with
62 *  DES Authentication (see the README file in the secure_rpc/ directory).
63 */
64#include <rpc/auth_des.h>       /* protocol for des style cred */
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
70#include <rpc/rpcent.h>
71
72__BEGIN_DECLS
73extern int get_myaddress(struct sockaddr_in *);
74extern int bindresvport(int, struct sockaddr_in *);
75extern int bindresvport_sa(int, struct sockaddr *);
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 */
87struct _rtems_rpc_task_variables {
88        int             svc_svc_maxfd;
89        fd_set          svc_svc_fdset;
90        SVCXPRT **      svc_xports;
91        int             svc_xportssize;
92        int             svc__svc_fdsetsize;
93        fd_set          *svc__svc_fdset;
94        struct svc_callout      *svc_svc_head;
95
96        char            *clnt_perror_buf;
97
98        struct clnt_raw_private *clnt_raw_private;
99
100        void            *call_rpc_private;
101
102        struct call_rpc_private *svc_raw_private;
103
104        struct prog_lst *svc_simple_proglst;
105        struct prog_lst *svc_simple_pl;
106        SVCXPRT         *svc_simple_transp;
107
108        char            *rpcdname_default_domain;
109
110        struct authsvc *svc_auths_Auths;
111};
112extern struct _rtems_rpc_task_variables *rtems_rpc_task_variables;
113
114#define svc_maxfd (rtems_rpc_task_variables->svc_svc_maxfd)
115#define svc_fdset (rtems_rpc_task_variables->svc_svc_fdset)
116#define __svc_fdsetsize (rtems_rpc_task_variables->svc__svc_fdsetsize)
117#define __svc_fdset (rtems_rpc_task_variables->svc__svc_fdset)
118
119#endif /* _RTEMS_RPC_INTERNAL_ */
120
121#endif /* !_RPC_RPC_H */
Note: See TracBrowser for help on using the repository browser.