Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fs/cachefs_dlog.h
          +++ new/usr/src/uts/common/sys/fs/cachefs_dlog.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_FS_CACHEFS_DLOG_H
  28   30  #define _SYS_FS_CACHEFS_DLOG_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  #include <sys/vfs.h>
  33   33  #include <sys/acl.h>
  34   34  
  35   35  #ifdef __cplusplus
  36   36  extern "C" {
  37   37  #endif
  38   38  
  39   39  /*
  40   40   * Version number of log file format.
  41   41   * Put in an int at the start of the file.
↓ open down ↓ 230 lines elided ↑ open up ↑
 272  272  
 273  273  #ifndef MAX
 274  274  #define MAX(a, b)       (((a) > (b)) ? (a) : (b))
 275  275  #endif /* MAX */
 276  276  
 277  277  #define CFS_DLOG_ENTRY_MAXSIZE  \
 278  278          MAX(offsetof(struct cfs_dlog_entry, dl_trailer),                \
 279  279              offsetof(struct cfs_dlog_entry, dl_u.dl_setsecattr) +       \
 280  280              CFS_DLOG_SECATTR_MAXSIZE)
 281  281  
 282      -#if defined(_KERNEL) && defined(__STDC__)
      282 +#if defined(_KERNEL)
 283  283  int cachefs_dlog_setup(fscache_t *fscp, int createfile);
 284  284  void cachefs_dlog_teardown(fscache_t *fscp);
 285  285  int cachefs_dlog_commit(fscache_t *fscp, off_t offset, int error);
 286  286  int cachefs_dlog_cidmap(fscache_t *fscp);
 287  287  off_t cachefs_dlog_setattr(fscache_t *fscp, struct vattr *vap, int flags,
 288  288      cnode_t *cp, cred_t *cr);
 289  289  off_t
 290  290  cachefs_dlog_setsecattr(fscache_t *fscp, vsecattr_t *vsec, int flags,
 291  291      cnode_t *cp, cred_t *cr);
 292  292  off_t cachefs_dlog_create(fscache_t *fscp, cnode_t *pcp, char *nm,
↓ open down ↓ 24 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX