rpc_com.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Portions of this source code were derived from Berkeley
* 4.3 BSD under license from the Regents of the University of
* California.
*/
/*
* rpc_com.h, Common definitions for both the server and client side.
* All for the topmost layer of rpc
*
*/
#ifndef _RPC_RPC_COM_H
#define _RPC_RPC_COM_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* File descriptor to be used on xxx_create calls to get default descriptor
*/
#define RPC_ANYSOCK -1
#define RPC_ANYFD RPC_ANYSOCK
/*
* The max size of the transport, if the size cannot be determined
* by other means.
*/
#define RPC_MAXDATASIZE 9000
#define RPC_MAXADDRSIZE 1024
/*
* Computed as INET6_ADDRSTRLEN + (strlen(".255.255") for port)
*/
#define RPC_INET6_MAXUADDRSIZE 54
/*
* The type of user of the STREAMS module rpcmod.
*/
#define RPC_CLIENT 1
#define RPC_SERVER 2
#define RPC_TEST 3
#ifdef __STDC__
extern int __rpc_dtbsize(void);
extern struct netconfig *__rpcfd_to_nconf(int, int);
extern int __rpc_matchserv(int, unsigned int);
extern int __rpc_get_default_domain(char **);
extern int __rpc_tli_set_options(int, int, int, int); /* internal use only */
#else
extern uint_t __rpc_get_t_size();
extern uint_t __rpc_get_a_size();
extern int __rpc_dtbsize();
extern struct netconfig *__rpcfd_to_nconf();
extern int __rpc_matchserv();
extern int __rpc_get_default_domain();
extern int __rpc_tli_set_options(); /* internal use only */
#endif
#ifndef _KERNEL
#ifdef __STDC__
bool_t rpc_control(int, void *);
#else
#endif
/*
* rpc_control commands
*/
/* EXCLBIND private interface start - for internal use only */
/* EXCLBIND private interface end - for internal use only */
/* set inter record timeout for COTS RPC */
#define RPC_SVC_IRTIMEOUT_SET 15
#endif /* !_KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _RPC_RPC_COM_H */