Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/aio.h
          +++ new/usr/src/head/aio.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 _AIO_H
  28   30  #define _AIO_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  #include <sys/feature_tests.h>
  33   33  #include <sys/types.h>
  34   34  #include <sys/fcntl.h>
  35   35  #include <sys/siginfo.h>
  36   36  #include <sys/aiocb.h>
  37   37  #include <time.h>
  38   38  
  39   39  #ifdef  __cplusplus
  40   40  extern "C" {
  41   41  #endif
↓ open down ↓ 55 lines elided ↑ open up ↑
  97   97  #define aio_cancel64    aio_cancel
  98   98  #define aio_suspend64   aio_suspend
  99   99  #define aio_fsync64     aio_fsync
 100  100  #define aio_waitn64     aio_waitn
 101  101  #endif
 102  102  #endif  /* _LP64 && _LARGEFILE64_SOURCE */
 103  103  
 104  104  /*
 105  105   * function prototypes
 106  106   */
 107      -#if     defined(__STDC__)
 108  107  extern int      aio_read(aiocb_t *);
 109  108  extern int      aio_write(aiocb_t *);
 110  109  extern int      lio_listio(int,
 111  110                      aiocb_t *_RESTRICT_KYWD const *_RESTRICT_KYWD,
 112  111                      int, struct sigevent *_RESTRICT_KYWD);
 113  112  extern int      aio_error(const aiocb_t *);
 114  113  extern ssize_t  aio_return(aiocb_t *);
 115  114  extern int      aio_cancel(int, aiocb_t *);
 116  115  extern int      aio_suspend(const aiocb_t *const[], int,
 117  116                      const struct timespec *);
↓ open down ↓ 12 lines elided ↑ open up ↑
 130  129  extern int      aio_error64(const aiocb64_t *);
 131  130  extern ssize_t  aio_return64(aiocb64_t *);
 132  131  extern int      aio_cancel64(int, aiocb64_t *);
 133  132  extern int      aio_suspend64(const aiocb64_t *const[], int,
 134  133                          const struct timespec *);
 135  134  extern int      aio_fsync64(int, aiocb64_t *);
 136  135  extern int      aio_waitn64(aiocb64_t *[], uint_t, uint_t *,
 137  136                      const struct timespec *);
 138  137  #endif  /* _LARGEFILE64_SOURCE */
 139  138  
 140      -#else
 141      -extern int      aio_read();
 142      -extern int      aio_write();
 143      -extern int      lio_listio();
 144      -extern int      aio_error();
 145      -extern ssize_t  aio_return();
 146      -extern int      aio_cancel();
 147      -extern int      aio_suspend();
 148      -extern int      aio_fsync();
 149      -extern int      aio_waitn();
 150      -
 151      -#if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
 152      -        !defined(__PRAGMA_REDEFINE_EXTNAME))
 153      -extern int      aio_read64();
 154      -extern int      aio_write64();
 155      -extern int      lio_listio64();
 156      -extern int      aio_error64();
 157      -extern ssize_t  aio_return64();
 158      -extern int      aio_cancel64();
 159      -extern int      aio_suspend64();
 160      -extern int      aio_fsync64();
 161      -extern int      aio_waitn64();
 162      -#endif  /* _LARGEFILE64_SOURCE */
 163      -
 164      -#endif  /* __STDC__ */
 165      -
 166  139  #ifdef  __cplusplus
 167  140  }
 168  141  #endif
 169  142  
 170  143  #endif  /* _AIO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX