1995-02-18 01:27:10 +00:00
|
|
|
/* @(#)rpc.h 2.3 88/08/10 4.0 RPCSRC; from 1.9 88/02/08 SMI */
|
|
|
|
/*
|
|
|
|
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
|
|
|
|
* unrestricted use provided that this legend is included on all tape
|
|
|
|
* media and as a part of the software program in whole or part. Users
|
|
|
|
* may copy or modify Sun RPC without charge, but are not authorized
|
|
|
|
* to license or distribute it to anyone else except as part of a product or
|
|
|
|
* program developed by the user.
|
1996-11-11 00:59:33 +00:00
|
|
|
*
|
1995-02-18 01:27:10 +00:00
|
|
|
* SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
|
|
|
|
* WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
|
1996-11-11 00:59:33 +00:00
|
|
|
*
|
1995-02-18 01:27:10 +00:00
|
|
|
* Sun RPC is provided with no support and without any obligation on the
|
|
|
|
* part of Sun Microsystems, Inc. to assist in its use, correction,
|
|
|
|
* modification or enhancement.
|
|
|
|
*
|
|
|
|
* SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
|
|
|
|
* INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
|
|
|
|
* OR ANY PART THEREOF.
|
|
|
|
*
|
|
|
|
* In no event will Sun Microsystems, Inc. be liable for any lost revenue
|
|
|
|
* or profits or other special, indirect and consequential damages, even if
|
|
|
|
* Sun has been advised of the possibility of such damages.
|
|
|
|
*
|
|
|
|
* Sun Microsystems, Inc.
|
|
|
|
* 2550 Garcia Avenue
|
|
|
|
* Mountain View, California 94043
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* rpc.h, Just includes the billions of rpc header files necessary to
|
|
|
|
* do remote procedure calling.
|
|
|
|
*
|
|
|
|
* Copyright (C) 1984, Sun Microsystems, Inc.
|
|
|
|
*/
|
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 */
|