/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <sys/vfs_opreg.h>
#include <sys/sysmacros.h>
#include <sys/contract.h>
#include <sys/contract_impl.h>
#include <sys/ctfs_impl.h>
/*
*/
/*
* ctfs_create_latenode
*/
vnode_t *
{
}
/*
* ctfs_latest_nested_open
*
* The latest node is just a doorway to the status file; this function
* is used by ctfs_latest_access, ctfs_latest_open, and
* ctfs_latest_getattr to obtain that file.
*/
static vnode_t *
{
if (ct) {
return (svp);
}
return (NULL);
}
/*
* ctfs_latest_access - VOP_ACCESS entry point
*
* Fails if there isn't a latest contract.
*/
/* ARGSUSED */
static int
int mode,
int flags,
{
return (EACCES);
return (0);
}
return (ESRCH);
}
/*
* ctfs_latest_open - VOP_OPEN entry point
*
* After checking the mode bits, opens and returns the status file for
* the LWP's latest contract.
*/
static int
{
return (EINVAL);
}
return (ESRCH);
}
/*
* ctfs_latest_getattr - the VOP_GETATTR entry point
*
* Fetches and calls VOP_GETATTR on the status file for the LWP's
* latest contract. Otherwise it fakes up something bland.
*/
static int
int flags,
{
return (res);
}
return (0);
}
};