/*
* 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
*/
/*
*/
#include <sys/pathname.h>
static int
{
int error;
} else {
}
mutex_exit(&p->p_lock);
/*
* Skip over leading slashes
*/
pn.pn_pathlen--;
}
/*
* If we lack read access to the directory, we should error out.
*/
if (!error) {
} else {
}
}
return (error);
}
static int
{
char *kbuf;
int flags = 0;
if (error)
goto zutr_bail;
if (zr->zr_retcode)
goto zutr_done;
if (zr->zr_retcode)
goto zutr_done;
/*
* In order to access hidden attribute directory the
* user must have appropriate read access and be able
* to stat() the file
*/
} else {
}
if (zr->zr_retcode)
goto zutr_done;
if (zr->zr_retcode)
goto zutr_done;
if (zr->zr_retcode)
goto zutr_done;
}
if (error == 0)
if (rvalp)
return (error);
}
static int
{
int error;
return (error);
return (0);
return (0);
}
/*ARGSUSED*/
static int
{
int flags = 0;
if (error)
goto zutl_bail;
if (zl->zl_retcode)
goto zutl_done;
flags |= FIGNORECASE;
if (zl->zl_retcode)
goto zutl_done;
/*
* In order to access hidden attribute directory the
* user must have appropriate read access and be able
* to stat() the file
*/
} else {
}
if (zl->zl_retcode)
goto zutl_done;
if (zl->zl_retcode)
goto zutl_done;
if (zl->zl_retcode)
goto zutl_done;
if (zl->zl_retcode)
goto zutl_done;
}
}
if (error == 0)
if (release)
if (dvn)
if (rvalp)
return (error);
}
/*ARGSUSED*/
static int
{
int error;
return (ENXIO);
return (EINVAL);
switch (cmd) {
case ZUT_IOC_LOOKUP:
break;
case ZUT_IOC_READDIR:
default:
break;
}
return (error);
}
static int
{
if (cmd != DDI_ATTACH)
return (DDI_FAILURE);
DDI_PSEUDO, 0) == DDI_FAILURE)
return (DDI_FAILURE);
return (DDI_SUCCESS);
}
static int
{
if (cmd != DDI_DETACH)
return (DDI_FAILURE);
return (DDI_SUCCESS);
}
/*ARGSUSED*/
static int
{
switch (infocmd) {
case DDI_INFO_DEVT2DEVINFO:
return (DDI_SUCCESS);
case DDI_INFO_DEVT2INSTANCE:
*result = (void *)0;
return (DDI_SUCCESS);
}
return (DDI_FAILURE);
}
/*ARGSUSED*/
int
{
if (minor == 0) /* This is the control device */
return (0);
return (ENXIO);
}
/*ARGSUSED*/
int
{
if (minor == 0) /* This is the control device */
return (0);
return (ENXIO);
}
/*
*
* other than serve up ioctls.
*/
zut_open, /* open */
zut_close, /* close */
nodev, /* strategy */
nodev, /* print */
nodev, /* dump */
nodev, /* read */
nodev, /* write */
zut_ioctl, /* ioctl */
nodev, /* devmap */
nodev, /* mmap */
nodev, /* segmap */
nochpoll, /* poll */
ddi_prop_op, /* prop_op */
NULL, /* streamtab */
CB_REV, /* version */
nodev, /* async read */
nodev, /* async write */
};
DEVO_REV, /* version */
0, /* refcnt */
zut_info, /* info */
nulldev, /* identify */
nulldev, /* probe */
zut_attach, /* attach */
zut_detach, /* detach */
nodev, /* reset */
&zut_cb_ops, /* driver operations */
NULL /* no bus operations */
};
};
(void *)&zut_modldrv,
};
int
_init(void)
{
int error;
return (error);
}
return (0);
}
int
_fini(void)
{
int error;
return (error);
return (error);
}
int
{
}