Print this page
fixup .text where possible
7127  remove -Wno-missing-braces from Makefile.uts


   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 #pragma ident   "%Z%%M% %I%     %E% SMI"
  27 

  28 #include <sys/types.h>
  29 #include <sys/param.h>
  30 #include <sys/time.h>
  31 #include <sys/cred.h>
  32 #include <sys/vfs.h>
  33 #include <sys/vfs_opreg.h>
  34 #include <sys/gfs.h>
  35 #include <sys/vnode.h>
  36 #include <sys/systm.h>
  37 #include <sys/errno.h>
  38 #include <sys/sysmacros.h>
  39 #include <fs/fs_subr.h>
  40 #include <sys/contract.h>
  41 #include <sys/contract_impl.h>
  42 #include <sys/ctfs.h>
  43 #include <sys/ctfs_impl.h>
  44 #include <sys/file.h>
  45 #include <sys/pathname.h>
  46 
  47 /*


 146         }
 147 
 148         list_remove(&ct->ct_vnodes, &cdirnode->ctfs_cn_linkage);
 149         mutex_exit(&ct->ct_lock);
 150 
 151         contract_rele(ct);
 152         kmem_free(cdirnode, sizeof (ctfs_cdirnode_t));
 153 }
 154 
 155 
 156 const fs_operation_def_t ctfs_tops_cdir[] = {
 157         { VOPNAME_OPEN,         { .vop_open = ctfs_open } },
 158         { VOPNAME_CLOSE,        { .vop_close = ctfs_close } },
 159         { VOPNAME_IOCTL,        { .error = fs_inval } },
 160         { VOPNAME_GETATTR,      { .vop_getattr = ctfs_cdir_getattr } },
 161         { VOPNAME_ACCESS,       { .vop_access = ctfs_access_dir } },
 162         { VOPNAME_READDIR,      { .vop_readdir = gfs_vop_readdir } },
 163         { VOPNAME_LOOKUP,       { .vop_lookup = gfs_vop_lookup } },
 164         { VOPNAME_SEEK,         { .vop_seek = fs_seek } },
 165         { VOPNAME_INACTIVE,     { .vop_inactive = ctfs_cdir_inactive } },
 166         { NULL, NULL }
 167 };


   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 

  26 
  27 
  28 #include <sys/types.h>
  29 #include <sys/param.h>
  30 #include <sys/time.h>
  31 #include <sys/cred.h>
  32 #include <sys/vfs.h>
  33 #include <sys/vfs_opreg.h>
  34 #include <sys/gfs.h>
  35 #include <sys/vnode.h>
  36 #include <sys/systm.h>
  37 #include <sys/errno.h>
  38 #include <sys/sysmacros.h>
  39 #include <fs/fs_subr.h>
  40 #include <sys/contract.h>
  41 #include <sys/contract_impl.h>
  42 #include <sys/ctfs.h>
  43 #include <sys/ctfs_impl.h>
  44 #include <sys/file.h>
  45 #include <sys/pathname.h>
  46 
  47 /*


 146         }
 147 
 148         list_remove(&ct->ct_vnodes, &cdirnode->ctfs_cn_linkage);
 149         mutex_exit(&ct->ct_lock);
 150 
 151         contract_rele(ct);
 152         kmem_free(cdirnode, sizeof (ctfs_cdirnode_t));
 153 }
 154 
 155 
 156 const fs_operation_def_t ctfs_tops_cdir[] = {
 157         { VOPNAME_OPEN,         { .vop_open = ctfs_open } },
 158         { VOPNAME_CLOSE,        { .vop_close = ctfs_close } },
 159         { VOPNAME_IOCTL,        { .error = fs_inval } },
 160         { VOPNAME_GETATTR,      { .vop_getattr = ctfs_cdir_getattr } },
 161         { VOPNAME_ACCESS,       { .vop_access = ctfs_access_dir } },
 162         { VOPNAME_READDIR,      { .vop_readdir = gfs_vop_readdir } },
 163         { VOPNAME_LOOKUP,       { .vop_lookup = gfs_vop_lookup } },
 164         { VOPNAME_SEEK,         { .vop_seek = fs_seek } },
 165         { VOPNAME_INACTIVE,     { .vop_inactive = ctfs_cdir_inactive } },
 166         { NULL,                 { NULL } }
 167 };