rpc_comdata1.c revision 1219:f89f56c2d9ac
1184610Salfred/*
2184610Salfred * CDDL HEADER START
3184610Salfred *
4184610Salfred * The contents of this file are subject to the terms of the
5184610Salfred * Common Development and Distribution License, Version 1.0 only
6184610Salfred * (the "License").  You may not use this file except in compliance
7184610Salfred * with the License.
8184610Salfred *
9184610Salfred * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10184610Salfred * or http://www.opensolaris.org/os/licensing.
11184610Salfred * See the License for the specific language governing permissions
12184610Salfred * and limitations under the License.
13184610Salfred *
14184610Salfred * When distributing Covered Code, include this CDDL HEADER in each
15184610Salfred * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16184610Salfred * If applicable, add the following below this CDDL HEADER, with the
17184610Salfred * fields enclosed by brackets "[]" replaced with your own identifying
18184610Salfred * information: Portions Copyright [yyyy] [name of copyright owner]
19184610Salfred *
20184610Salfred * CDDL HEADER END
21184610Salfred */
22184610Salfred
23184610Salfred/*
24184610Salfred * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25184610Salfred * Use is subject to license terms.
26184610Salfred */
27184610Salfred
28184610Salfred#pragma ident	"%Z%%M%	%I%	%E% SMI"
29184610Salfred
30184610Salfred/*
31184610Salfred * FD_SETSIZE definition must precede any save isa_defs.h since that
32184610Salfred * is where _LP64 is defined....
33184610Salfred */
34184610Salfred#include "mt.h"
35184610Salfred#include <sys/isa_defs.h>
36184610Salfred#if !defined(_LP64)
37184610Salfred#ifdef FD_SETSIZE
38184610Salfred#undef FD_SETSIZE
39184610Salfred#endif
40184610Salfred#define	FD_SETSIZE 65536
41184610Salfred
42184610Salfred#include <sys/select.h>
43184610Salfred
44184610Salfred/*
45184610Salfred * This file should only contain common data (global data) that is exported
46184610Salfred * by public interfaces
47184610Salfred */
48184610Salfred
49184610Salfred/*
50184610Salfred * Definition of alternate fd_set for svc_fdset to be used when
51184610Salfred * someone redefine SVC_FDSETSIZE. This is here solely to
52184610Salfred * protect against someone doing a svc_fdset = a_larger_fd_set.
53184610Salfred * If we're not a 64 bit app and someone defines fd_setsize > 1024
54184610Salfred * then svc_fdset is redefined to be _new_svc_fdset (in <rpc/svc.h>)
55194677Sthompsa * which we size here at the maximum size.
56194677Sthompsa */
57194677Sthompsa
58194677Sthompsafd_set _new_svc_fdset;
59194677Sthompsa#else
60194677Sthompsa
61194677Sthompsa#include <sys/select.h>
62194677Sthompsa
63194677Sthompsaextern fd_set svc_fdset;	/* to avoid "empty translation unit" */
64194677Sthompsa#endif
65194677Sthompsa