Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fs/ufs_filio.h
          +++ new/usr/src/uts/common/sys/fs/ufs_filio.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  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 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       23 + *
  22   24   * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23   25   * Use is subject to license terms.
  24   26   */
  25   27  
  26   28  #ifndef _SYS_FS_UFS_FILIO_H
  27   29  #define _SYS_FS_UFS_FILIO_H
  28   30  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  30      -
  31   31  #ifdef  __cplusplus
  32   32  extern "C" {
  33   33  #endif
  34   34  
  35   35  /*
  36   36   * _FIOIO
  37   37   *
  38   38   * struct for _FIOIO ioctl():
  39   39   *      Input:
  40   40   *              fio_ino - inode number
↓ open down ↓ 40 lines elided ↑ open up ↑
  81   81  } fiolog_t;
  82   82  
  83   83  #define FIOLOG_ENONE    0
  84   84  #define FIOLOG_ETRANS   1
  85   85  #define FIOLOG_EROFS    2
  86   86  #define FIOLOG_EULOCK   3
  87   87  #define FIOLOG_EWLOCK   4
  88   88  #define FIOLOG_ECLEAN   5
  89   89  #define FIOLOG_ENOULOCK 6
  90   90  
  91      -#if defined(_KERNEL) && defined(__STDC__)
       91 +#if defined(_KERNEL)
  92   92  
  93   93  extern  int     ufs_fiosatime(struct vnode *, struct timeval *, int,
  94   94                  struct cred *);
  95   95  extern  int     ufs_fiosdio(struct vnode *, uint_t *, int flag, struct cred *);
  96   96  extern  int     ufs_fiogdio(struct vnode *, uint_t *, int flag, struct cred *);
  97   97  extern  int     ufs_fioio(struct vnode *, struct fioio *, int, struct cred *);
  98   98  extern  int     ufs_fioisbusy(struct vnode *, int *, struct cred *);
  99   99  extern  int     ufs_fiodirectio(struct vnode *, int, struct cred *);
 100  100  extern  int     ufs_fiotune(struct vnode *, struct fiotune *, struct cred *);
 101  101  extern  int     ufs_fiologenable(vnode_t *, fiolog_t *, cred_t *, int);
 102  102  extern  int     ufs_fiologdisable(vnode_t *, fiolog_t *, cred_t *, int);
 103  103  extern  int     ufs_fioislog(vnode_t *, uint32_t *, cred_t *, int);
 104  104  extern  int     ufs_fio_holey(vnode_t *, int, offset_t *);
 105  105  extern  int     ufs_mark_compressed(struct vnode *vp);
 106  106  
 107      -#endif  /* defined(_KERNEL) && defined(__STDC__) */
      107 +#endif  /* defined(_KERNEL) */
 108  108  
 109  109  #ifdef  __cplusplus
 110  110  }
 111  111  #endif
 112  112  
 113  113  #endif  /* _SYS_FS_UFS_FILIO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX