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 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #pragma ident "%Z%%M% %I% %E% SMI" 28 29 /* 30 * FD_SETSIZE definition must precede any save isa_defs.h since that 31 * is where _LP64 is defined.... 32 */ 33 #include <sys/isa_defs.h> 34 #if !defined(_LP64) 35 #ifdef FD_SETSIZE 36 #undef FD_SETSIZE 37 #endif 38 #define FD_SETSIZE 65536 39 40 #include <sys/select.h> 41 42 /* 43 * This file should only contain common data (global data) that is exported 44 * by public interfaces 45 */ 46 47 /* 48 * Definition of alternate fd_set for svc_fdset to be used when 49 * someone redefine SVC_FDSETSIZE. This is here solely to 50 * protect against someone doing a svc_fdset = a_larger_fd_set. 51 * If we're not a 64 bit app and someone defines fd_setsize > 1024 52 * then svc_fdset is redefined to be _new_svc_fdset (in <rpc/svc.h>) 53 * which we size here at the maximum size. 54 */ 55 56 fd_set _new_svc_fdset; 57 #else 58 extern int svc_fdset; /* to avoid "empty translation unit" */ 59 #endif 60