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 2006 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 "mt.h"
  35 #include <sys/isa_defs.h>
  36 #if !defined(_LP64)
  37 #ifdef FD_SETSIZE
  38 #undef FD_SETSIZE
  39 #endif
  40 #define FD_SETSIZE 65536
  41 
  42 #include <sys/select.h>
  43 
  44 /*
  45  * This file should only contain common data (global data) that is exported
  46  * by public interfaces
  47  */
  48 
  49 /*
  50  * Definition of alternate fd_set for svc_fdset to be used when
  51  * someone redefine SVC_FDSETSIZE. This is here solely to
  52  * protect against someone doing a svc_fdset = a_larger_fd_set.
  53  * If we're not a 64 bit app and someone defines fd_setsize > 1024
  54  * then svc_fdset is redefined to be _new_svc_fdset (in <rpc/svc.h>)
  55  * which we size here at the maximum size.
  56  */
  57 
  58 fd_set _new_svc_fdset;
  59 #else
  60 
  61 #include <sys/select.h>
  62 
  63 extern fd_set svc_fdset;        /* to avoid "empty translation unit" */
  64 #endif