Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/fs/cachefs_fs.h
          +++ new/usr/src/uts/common/sys/fs/cachefs_fs.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_FS_H
  28   30  #define _SYS_FS_CACHEFS_FS_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  #include <sys/vnode.h>
  33   33  #include <sys/vfs.h>
  34   34  #include <sys/types.h>
  35   35  #include <sys/types32.h>
  36   36  #include <sys/t_lock.h>
  37   37  #include <sys/thread.h>
  38   38  #include <sys/kmem.h>
  39   39  #include <sys/inttypes.h>
  40   40  #include <sys/time_impl.h>
  41   41  #include <sys/systm.h>
↓ open down ↓ 1058 lines elided ↑ open up ↑
1100 1100          kthread_id_t    cdb_thread;     /* thread who called */
1101 1101          hrtime_t        cdb_timestamp;  /* when */
1102 1102          int             cdb_depth;      /* depth of saved stack */
1103 1103          pc_t            cdb_stack[CACHEFS_DEBUG_DEPTH]; /* stack trace */
1104 1104          struct cachefs_debug_info *cdb_next; /* pointer to next */
1105 1105  } cachefs_debug_info_t;
1106 1106  
1107 1107  /*
1108 1108   * cachefs function prototypes
1109 1109   */
1110      -#if defined(_KERNEL) && defined(__STDC__)
     1110 +#if defined(_KERNEL)
1111 1111  extern int cachefs_getcookie(vnode_t *, struct fid *, struct vattr *,
1112 1112                  cred_t *, uint32_t);
1113 1113  cachefscache_t *cachefs_cache_create(void);
1114 1114  void cachefs_cache_destroy(cachefscache_t *cachep);
1115 1115  int cachefs_cache_activate_ro(cachefscache_t *cachep, vnode_t *cdvp);
1116 1116  void cachefs_cache_activate_rw(cachefscache_t *cachep);
1117 1117  void cachefs_cache_dirty(struct cachefscache *cachep, int lockit);
1118 1118  int cachefs_cache_rssync(struct cachefscache *cachep);
1119 1119  void cachefs_cache_sync(struct cachefscache *cachep);
1120 1120  uint_t cachefs_cache_unique(cachefscache_t *cachep);
↓ open down ↓ 177 lines elided ↑ open up ↑
1298 1298  
1299 1299  extern void cachefs_workq_init(struct cachefs_workq *);
1300 1300  extern void cachefs_addqueue(struct cachefs_req *, struct cachefs_workq *);
1301 1301  
1302 1302  
1303 1303  extern void *cachefs_kmem_alloc(size_t, int);
1304 1304  extern void *cachefs_kmem_zalloc(size_t, int);
1305 1305  extern void cachefs_kmem_free(void *, size_t);
1306 1306  extern char *cachefs_strdup(char *);
1307 1307  
1308      -#endif /* defined (_KERNEL) && defined (__STDC__) */
     1308 +#endif /* defined (_KERNEL) */
1309 1309  
1310 1310  
1311 1311  
1312 1312  #define C_RL_MAXENTS    0x4000          /* Whatever */
1313 1313  
1314 1314  /*
1315 1315   * ioctls.
1316 1316   */
1317 1317  #include <sys/ioccom.h>
1318 1318  #define _FIOCOD         _IO('f', 78)            /* consistency on demand */
↓ open down ↓ 13 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX