Print this page
remove support for non-ANSI compilation

*** 18,36 **** * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _SYS_FS_CACHEFS_DIR_H #define _SYS_FS_CACHEFS_DIR_H - #pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/types.h> #include <sys/fs/cachefs_fs.h> #ifdef __cplusplus extern "C" { --- 18,36 ---- * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> + * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _SYS_FS_CACHEFS_DIR_H #define _SYS_FS_CACHEFS_DIR_H #include <sys/types.h> #include <sys/fs/cachefs_fs.h> #ifdef __cplusplus extern "C" {
*** 69,79 **** */ #define CDE_VALID 0x1 /* entry is valid */ #define CDE_COMPLETE 0x2 /* entry is complete */ ! #if defined(_KERNEL) && defined(__STDC__) int cachefs_dir_look(cnode_t *dcp, char *nm, fid_t *cookiep, uint_t *flagp, u_offset_t *d_offsetp, cfs_cid_t *cidp); int cachefs_dir_new(cnode_t *dcp, cnode_t *cp); int cachefs_dir_enter(cnode_t *dcp, char *nm, fid_t *cookiep, cfs_cid_t *cidp, int issync); --- 69,79 ---- */ #define CDE_VALID 0x1 /* entry is valid */ #define CDE_COMPLETE 0x2 /* entry is complete */ ! #if defined(_KERNEL) int cachefs_dir_look(cnode_t *dcp, char *nm, fid_t *cookiep, uint_t *flagp, u_offset_t *d_offsetp, cfs_cid_t *cidp); int cachefs_dir_new(cnode_t *dcp, cnode_t *cp); int cachefs_dir_enter(cnode_t *dcp, char *nm, fid_t *cookiep, cfs_cid_t *cidp, int issync);
*** 84,94 **** int cachefs_dir_fill(cnode_t *dcp, cred_t *cr); int cachefs_dir_empty(cnode_t *dcp); int cachefs_async_populate_dir(struct cachefs_populate_req *, cred_t *, vnode_t *, vnode_t *); ! #endif /* defined(_KERNEL) && defined(__STDC__) */ #ifdef __cplusplus } #endif --- 84,94 ---- int cachefs_dir_fill(cnode_t *dcp, cred_t *cr); int cachefs_dir_empty(cnode_t *dcp); int cachefs_async_populate_dir(struct cachefs_populate_req *, cred_t *, vnode_t *, vnode_t *); ! #endif /* defined(_KERNEL) */ #ifdef __cplusplus } #endif