Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/sendfile.h
          +++ new/usr/src/uts/common/sys/sendfile.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  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  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  #ifndef _SYS_SENDFILE_H
  28   30  #define _SYS_SENDFILE_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  #include <sys/feature_tests.h>
  33   33  
  34   34  #ifdef  __cplusplus
  35   35  extern "C" {
  36   36  #endif
  37   37  
  38   38  #include <sys/types.h>
  39   39  #include <sys/uio.h>
  40   40  
  41   41  /*
↓ open down ↓ 79 lines elided ↑ open up ↑
 121  121  #if defined(_LP64) && defined(_LARGEFILE64_SOURCE)
 122  122  #ifdef  __PRAGMA_REDEFINE_EXTNAME
 123  123  #pragma redefine_extname        sendfilev64     sendfilev
 124  124  #pragma redefine_extname        sendfile64      sendfile
 125  125  #else   /* __PRAGMA_REDEFINE_EXTNAME */
 126  126  #define sendfilev64                     sendfilev
 127  127  #define sendfile64                      sendfile
 128  128  #endif  /* __PRAGMA_REDEFINE_EXTNAME */
 129  129  #endif  /* _LP64 && _LARGEFILE64_SOURCE */
 130  130  
 131      -#ifdef  __STDC__
 132  131  extern ssize_t sendfilev(int, const struct sendfilevec *, int, size_t *);
 133  132  extern ssize_t sendfile(int, int, off_t *, size_t);
 134  133  /* Transitional largefile interface */
 135  134  #if     defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
 136  135              !defined(__PRAGMA_REDEFINE_EXTNAME))
 137  136  extern ssize_t sendfilev64(int, const struct sendfilevec64 *, int, size_t *);
 138  137  extern ssize_t sendfile64(int, int, off64_t *, size_t);
 139  138  #endif
 140      -#else   /* __STDC__ */
 141      -extern int sendfilev();
 142      -extern int sendfile();
 143      -#if     defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
 144      -            !defined(__PRAGMA_REDEFINE_EXTNAME))
 145      -extern int sendfilev64();
 146      -extern int sendfile64();
 147      -#endif
 148      -#endif  /* __STDC__ */
 149  139  #endif  /* _KERNEL */
 150  140  
 151  141  #ifdef  __cplusplus
 152  142  }
 153  143  #endif
 154  144  
 155  145  #endif  /* _SYS_SENDFILE_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX