Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/poll.h
          +++ new/usr/src/uts/common/sys/poll.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25   25  
  26   26  /*
       27 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       28 + *
  27   29   * Copyright (c) 1995, 1998 by Sun Microsystems, Inc.
  28   30   * All rights reserved.
  29   31   */
  30   32  
  31   33  #ifndef _SYS_POLL_H
  32   34  #define _SYS_POLL_H
  33   35  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 11.9 */
  35      -
  36   36  #ifdef  __cplusplus
  37   37  extern "C" {
  38   38  #endif
  39   39  
  40   40  /*
  41   41   * Structure of file descriptor/event pairs supplied in
  42   42   * the poll arrays.
  43   43   */
  44   44  typedef struct pollfd {
  45   45          int fd;                         /* file desc to poll */
↓ open down ↓ 85 lines elided ↑ open up ↑
 131  131   *
 132  132   *  pollhead_clean      clean up all polldats on a pollhead list
 133  133   */
 134  134  extern void pollhead_clean(pollhead_t *);
 135  135  
 136  136  #endif /* defined(_KERNEL) */
 137  137  
 138  138  #endif /* defined(_KERNEL) || defined(_KMEMUSER) */
 139  139  
 140  140  #if !defined(_KERNEL)
 141      -#if defined(__STDC__)
 142  141  int poll(struct pollfd *, nfds_t, int);
 143      -#else
 144      -int poll();
 145      -#endif /* __STDC__ */
 146  142  #endif /* !_KERNEL */
 147  143  
 148  144  #ifdef  __cplusplus
 149  145  }
 150  146  #endif
 151  147  
 152  148  #endif  /* _SYS_POLL_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX