xref: /titanic_41/usr/src/lib/libnsl/rpc/rpc_comdata1.c (revision fa9e4066f08beec538e775443c5be79dd423fcab)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 
23 /*
24  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
25  * Use is subject to license terms.
26  */
27 
28 #pragma ident	"%Z%%M%	%I%	%E% SMI"
29 
30 /*
31  * FD_SETSIZE definition must precede any save isa_defs.h since that
32  * is where _LP64 is defined....
33  */
34 #include <sys/isa_defs.h>
35 #if !defined(_LP64)
36 #ifdef FD_SETSIZE
37 #undef FD_SETSIZE
38 #endif
39 #define	FD_SETSIZE 65536
40 
41 #include <sys/select.h>
42 
43 /*
44  * This file should only contain common data (global data) that is exported
45  * by public interfaces
46  */
47 
48 /*
49  * Definition of alternate fd_set for svc_fdset to be used when
50  * someone redefine SVC_FDSETSIZE. This is here solely to
51  * protect against someone doing a svc_fdset = a_larger_fd_set.
52  * If we're not a 64 bit app and someone defines fd_setsize > 1024
53  * then svc_fdset is redefined to be _new_svc_fdset (in <rpc/svc.h>)
54  * which we size here at the maximum size.
55  */
56 
57 fd_set _new_svc_fdset;
58 #else
59 
60 #include <sys/select.h>
61 
62 extern fd_set svc_fdset;	/* to avoid "empty translation unit" */
63 #endif
64