Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/select.h
          +++ new/usr/src/uts/common/sys/select.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   30  /*        All Rights Reserved   */
  29   31  
  30   32  /*
  31   33   * University Copyright- Copyright (c) 1982, 1986, 1988
  32   34   * The Regents of the University of California
↓ open down ↓ 112 lines elided ↑ open up ↑
 145  147  #define FD_ISSET(__n, __p)      (((__p)->fds_bits[(__n)/FD_NFDBITS] & \
 146  148                                      (1ul << ((__n) % FD_NFDBITS))) != 0l)
 147  149  
 148  150  #ifdef _KERNEL
 149  151  #define FD_ZERO(p)      bzero((p), sizeof (*(p)))
 150  152  #else
 151  153  #define FD_ZERO(__p)    (void) memset((__p), 0, sizeof (*(__p)))
 152  154  #endif /* _KERNEL */
 153  155  
 154  156  #ifndef _KERNEL
 155      -#ifdef  __STDC__
 156  157  extern int select(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD,
 157  158          fd_set *_RESTRICT_KYWD, struct timeval *_RESTRICT_KYWD);
 158  159  
 159  160  #if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
 160  161  extern int pselect(int, fd_set *_RESTRICT_KYWD, fd_set *_RESTRICT_KYWD,
 161  162          fd_set *_RESTRICT_KYWD, const struct timespec *_RESTRICT_KYWD,
 162  163          const sigset_t *_RESTRICT_KYWD);
 163  164  #endif
 164  165  
 165      -#else
 166      -extern int select();
 167      -#if !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__)
 168      -extern int pselect();
 169      -#endif
 170      -#endif  /* __STDC__ */
 171  166  #endif  /* _KERNEL */
 172  167  
 173  168  #ifdef  __cplusplus
 174  169  }
 175  170  #endif
 176  171  
 177  172  #endif  /* _SYS_SELECT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX