Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fs/ufs_trans.h
          +++ new/usr/src/uts/common/sys/fs/ufs_trans.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 2005 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  #ifndef _SYS_FS_UFS_TRANS_H
  28   30  #define _SYS_FS_UFS_TRANS_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  #ifdef  __cplusplus
  33   33  extern "C" {
  34   34  #endif
  35   35  
  36   36  #include        <sys/types.h>
  37   37  #include        <sys/cred.h>
  38   38  #include        <sys/fs/ufs_fs.h>
  39   39  
  40   40  /*
  41   41   * Types of deltas
↓ open down ↓ 432 lines elided ↑ open up ↑
 474  474  /*
 475  475   * The minimum log size is 1M.  So we will allow 1 fs operation to
 476  476   * reserve at most 512K of log space.
 477  477   */
 478  478  #define TOP_MAX_RESV    (512 * 1024)
 479  479  
 480  480  
 481  481  /*
 482  482   * ufs trans function prototypes
 483  483   */
 484      -#if defined(_KERNEL) && defined(__STDC__)
      484 +#if defined(_KERNEL)
 485  485  
 486  486  extern int              ufs_trans_hlock();
 487  487  extern void             ufs_trans_onerror();
 488  488  extern int              ufs_trans_push_inode(struct ufsvfs *, delta_t, ino_t);
 489  489  extern int              ufs_trans_push_buf(struct ufsvfs *, delta_t, daddr_t);
 490  490  extern int              ufs_trans_push_si(struct ufsvfs *, delta_t, int);
 491  491  extern void             ufs_trans_sbupdate(struct ufsvfs *, struct vfs *,
 492  492                                  top_t);
 493  493  extern void             ufs_trans_sbwrite(struct ufsvfs *, top_t);
 494  494  extern void             ufs_trans_iupdat(struct inode *, int);
↓ open down ↓ 36 lines elided ↑ open up ↑
 531  531  void    top_end_sync(struct ufsvfs *ufsvfsp, int *ep, top_t topid,
 532  532              ulong_t size);
 533  533  void    top_end_async(struct ufsvfs *ufsvfsp, top_t topid, ulong_t size);
 534  534  void    top_log(struct ufsvfs *ufsvfsp, char *va, offset_t vamof, off_t nb,
 535  535              caddr_t buf, uint32_t bufsz);
 536  536  void    top_mataadd(struct ufsvfs *ufsvfsp, offset_t mof, off_t nb);
 537  537  void    top_matadel(struct ufsvfs *ufsvfsp, offset_t mof, off_t nb);
 538  538  void    top_mataclr(struct ufsvfs *ufsvfsp);
 539  539  
 540  540  
 541      -#endif  /* defined(_KERNEL) && defined(__STDC__) */
      541 +#endif  /* defined(_KERNEL) */
 542  542  
 543  543  #ifdef  __cplusplus
 544  544  }
 545  545  #endif
 546  546  
 547  547  #endif  /* _SYS_FS_UFS_TRANS_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX