1995-02-18 01:27:10 +00:00
|
|
|
/*
|
2010-08-19 17:38:55 +00:00
|
|
|
* rpc.h, Just includes the billions of rpc header files necessary to
|
|
|
|
* do remote procedure calling.
|
2009-05-21 04:57:37 +00:00
|
|
|
*
|
2010-08-19 17:38:55 +00:00
|
|
|
* Copyright (c) 2010, Oracle America, Inc.
|
2009-05-21 04:57:37 +00:00
|
|
|
*
|
2010-08-19 17:38:55 +00:00
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions are
|
|
|
|
* met:
|
2010-06-28 02:34:03 +00:00
|
|
|
*
|
2010-08-19 17:38:55 +00:00
|
|
|
* * Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* * Redistributions in binary form must reproduce the above
|
|
|
|
* copyright notice, this list of conditions and the following
|
|
|
|
* disclaimer in the documentation and/or other materials
|
|
|
|
* provided with the distribution.
|
|
|
|
* * Neither the name of the "Oracle America, Inc." nor the names of its
|
|
|
|
* contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
2010-06-28 02:34:03 +00:00
|
|
|
*
|
2010-08-19 17:38:55 +00:00
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
|
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
|
|
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
|
|
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
|
|
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
|
|
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
1995-02-18 01:27:10 +00:00
|
|
|
*/
|
1997-06-21 02:59:26 +00:00
|
|
|
|
|
|
|
#ifndef _RPC_RPC_H
|
|
|
|
#define _RPC_RPC_H 1
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
|
|
#include <rpc/types.h> /* some typedefs */
|
|
|
|
#include <netinet/in.h>
|
|
|
|
|
|
|
|
/* external data representation interfaces */
|
|
|
|
#include <rpc/xdr.h> /* generic (de)serializer */
|
|
|
|
|
|
|
|
/* Client side only authentication */
|
|
|
|
#include <rpc/auth.h> /* generic authenticator (client side) */
|
|
|
|
|
|
|
|
/* Client side (mostly) remote procedure call */
|
|
|
|
#include <rpc/clnt.h> /* generic rpc stuff */
|
|
|
|
|
|
|
|
/* semi-private protocol headers */
|
|
|
|
#include <rpc/rpc_msg.h> /* protocol for rpc messages */
|
|
|
|
#include <rpc/auth_unix.h> /* protocol for unix style cred */
|
Wed May 22 00:40:50 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/sysv/linux/alpha/speed.c (speeds): Add entry for
460800 baud.
* sysdeps/unix/sysv/linux/alpha/statbuf.h: New file.
* sysdeps/unix/sysv/linux/Makefile (headers): Add
alpha/ptrace.h.
* sysdeps/unix/sysv/linux/alpha/alpha/ptrace.h: New file.
* sysdeps/libm-ieee754/s_scalbnf.c: Call __scalbnf instead of
scalbnf.
* sysdeps/generic/sigset.h (__sigismember, __sigaddset,
__sigdelset): Add declaration to keep ANSI compilers quiet.
* sysdeps/alpha/__math.h (cabs): Remove underscores from struct
__cabs_complex member names in call to __hypot().
* sysdeps/alpha/copysign.S, sysdeps/alpha/fabs.S: New files.
* sysdeps/alpha/divrem.h: Renamed from sysdeps/alpha/divrem.S to avoid
name collision with math library.
* sysdeps/alpha/divl.S, sysdeps/alpha/divlu.S, sysdeps/alpha/divq.S,
sysdeps/alpha/divqu.S, sysdeps/alpha/reml.S, sysdeps/alpha/remlu.S,
sysdeps/alpha/remq.S, sysdeps/alpha/remqu.S: Include divrem.h instead
of divrem.S.
* sysdeps/unix/alpha/sysdep.h: Include regdef.h. Define LEAF macro
to simplify declaration of leaf functions.
* sysdeps/alpha/_mcount.S, sysdeps/alpha/bb_init_func.S,
sysdeps/alpha/bsd-setjmp.S, sysdeps/alpha/ffs.S,
sysdeps/alpha/htonl.S, sysdeps/alpha/htons.S, sysdeps/alpha/memchr.S,
sysdeps/alpha/setjmp.S, sysdeps/alpha/strlen.S,
sysdeps/alpha/udiv_qrnnd.S, sysdeps/unix/sysv/linux/alpha/brk.S,
sysdeps/unix/sysv/linux/alpha/ieee_get_fp_control.S,
sysdeps/unix/sysv/linux/alpha/ieee_set_fp_control.S,
sysdeps/unix/sysv/linux/alpha/pipe.S,
sysdeps/unix/sysv/linux/sigsuspend.S,
sysdeps/unix/sysv/linux/alpha/syscall.S,
sysdeps/unix/sysv/linux/alpha/sysdep.S: Remove include of regdef.h.
sysdep.h includes it now. Replace ENTRY by LEAF with appropriate
framesize declaration. Replace "lda pv,sym/jsr pv" by "jsr sym".
* sysdeps/unix/sysv/linux/alpha/sysdep.h (NO_UNDERSCORES): Don't
define.
* sysdeps/unix/sysv/linux/alpha/syscalls.list: Added getsockopt,
ptrace, and sysctl.
* sysdeps/unix/sysv/linux/alpha/profil-counter.h: File removed.
* sysdeps/unix/sysv/linux/alpha/ioperm.c: Modify to support
dynamic recognition of platform type.
(_bus_base): New function.
* sysdeps/unix/sysv/linux/alpha/llseek.S: New file.
* sunrpc/rpc/rpc.h, sunrpc/rpc/svc.h: Avoid nested comments since
they produce ugly warnings by gcc.
* posix/sys/types.h [__USE_MISC]: Add typedef for ulong.
Wed Mar 27 10:26:21 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/alpha/setjmp.S: Must establish global pointer before
address of __sigsetjmp_aux can be loaded.
1996-05-23 05:33:49 +00:00
|
|
|
#include <rpc/auth_des.h> /* protocol for des style cred */
|
1995-02-18 01:27:10 +00:00
|
|
|
|
|
|
|
/* Server side only remote procedure callee */
|
|
|
|
#include <rpc/svc.h> /* service manager and multiplexer */
|
|
|
|
#include <rpc/svc_auth.h> /* service side authenticator */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* COMMENT OUT THE NEXT INCLUDE IF RUNNING ON SUN OS OR ON A VERSION
|
|
|
|
* OF UNIX BASED ON NFSSRC. These systems will already have the structures
|
|
|
|
* defined by <rpc/netdb.h> included in <netdb.h>.
|
|
|
|
*/
|
|
|
|
/* routines for parsing /etc/rpc */
|
|
|
|
#include <rpc/netdb.h> /* structures and routines to parse /etc/rpc */
|
|
|
|
|
2001-06-11 07:41:59 +00:00
|
|
|
__BEGIN_DECLS
|
Update.
Add changes which were in this form in the original patch by
Eric Norum <eric.norum@usask.ca>.
* include/rpc/rpc.h: Remove svc_fdset, rpc_createerr, svc_pollfd, and
svc_max_pollfd.
* sunrpc/rpc/rpc.h: Declare __rpc_thread_svc_fdset,
__rpc_thread_createerr, __rpc_thread_svc_pollfd, and
__rpc_thread_svc_max_pollfd.
Define svc_fdset, get_rpc_createerr, svc_pollfd, and
svc_max_pollfd.
* sunrpc/rpc_thread.c: Handle first thread special, it uses the
global variables.
Define __rpc_thread_svc_fdset, __rpc_thread_createerr,
__rpc_thread_svc_pollfd, and __rpc_thread_svc_max_pollfd.
* sunrpc/Versions [libc] (GLIBC_2.2.3): Export __rpc_thread_svc_fdset,
__rpc_thread_createerr, __rpc_thread_svc_pollfd, and
__rpc_thread_svc_max_pollfd.
* sunrpc/clnt_gen.c: Replace use of rpc_createerr by call to
get_rpc_createerr.
* sunrpc/clnt_perr.c: Likewise.
* sunrpc/clnt_simp.c: Likewise.
* sunrpc/clnt_tcp.c: Likewise.
* sunrpc/clnt_udp.c: Likewise.
* sunrpc/clnt_unix.c: Likewise.
* sunrpc/pm_getport.c: Likewise.
2001-03-26 05:17:47 +00:00
|
|
|
|
|
|
|
/* Global variables, protected for multi-threaded applications. */
|
|
|
|
extern fd_set *__rpc_thread_svc_fdset (void) __attribute__ ((__const__));
|
|
|
|
#define svc_fdset (*__rpc_thread_svc_fdset ())
|
|
|
|
|
|
|
|
extern struct rpc_createerr *__rpc_thread_createerr (void)
|
|
|
|
__attribute__ ((__const__));
|
|
|
|
#define get_rpc_createerr() (*__rpc_thread_createerr ())
|
|
|
|
/* The people who "engineered" RPC should bee punished for naming the
|
|
|
|
data structure and the variable the same. We cannot always define the
|
|
|
|
macro 'rpc_createerr' because this would prevent people from defining
|
|
|
|
object of type 'struct rpc_createerr'. So we leave it up to the user
|
|
|
|
to select transparent replacement also of this variable. */
|
|
|
|
#ifdef _RPC_MT_VARS
|
|
|
|
# define rpc_createerr (*__rpc_thread_createerr ())
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern struct pollfd **__rpc_thread_svc_pollfd (void)
|
|
|
|
__attribute__ ((__const__));
|
|
|
|
#define svc_pollfd (*__rpc_thread_svc_pollfd ())
|
|
|
|
|
|
|
|
extern int *__rpc_thread_svc_max_pollfd (void) __attribute__ ((__const__));
|
|
|
|
#define svc_max_pollfd (*__rpc_thread_svc_max_pollfd ())
|
|
|
|
|
2001-06-11 07:41:59 +00:00
|
|
|
__END_DECLS
|
|
|
|
|
1997-06-21 02:59:26 +00:00
|
|
|
#endif /* rpc/rpc.h */
|