xattr_common.c revision 25613c1d425cf3953d010bbbe294d40990b5f45e
/*
* 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
*/
/*
*/
#if defined(_KERNEL)
#else
#include <strings.h>
#endif
/*
* This table maps each system attribute to its option and its view.
* All new system attrs must be added to this table. To add a new view,
* return values for the new view.
*/
};
const char *
{
return (NULL);
}
const char *
{
return (NULL);
}
name_to_attr(const char *name)
{
int i;
for (i = 0; i < F_ATTR_ALL; i++) {
return (i);
}
return (F_ATTR_INVAL);
}
option_to_attr(const char *option)
{
int i;
for (i = 0; i < F_ATTR_ALL; i++) {
return (i);
}
return (F_ATTR_INVAL);
}
{
return (XATTR_VIEW_INVALID);
}
int
attr_count(void)
{
return (F_ATTR_ALL);
}
{
return (DATA_TYPE_UNKNOWN);
}