FreeBSD/sys/ufs/ufs/ufs_extattr.c
/*-
 * Determine whether the name passed is a valid name for an actual
 * attribute.
 *
 * Invalid currently consists of:
 *	 NULL pointer for attrname
 *	 zero-length attrname (used to retrieve application attribute list)
 */
Determine whether the name passed is a valid name for an actual
attribute.

Invalid currently consists of:
NULL pointer for attrname
zero-length attrname (used to retrieve application attribute list)
Determine whether the name passed is a valid name for an actual attribute . Invalid currently consists of : NULL pointer for attrname zero - length attrname ( used to retrieve application attribute list )
static int
ufs_extattr_valid_attrname(int attrnamespace, const char *attrname)
{
	if (attrname == NULL)
		return (0);
	if (strlen(attrname) == 0)
		return (0);
	return (1);
}
static int ufs_extattr_valid_attrname ( int attrnamespace , const char * attrname ) { if ( attrname == NULL ) return ( 0 ) ; if ( strlen ( attrname ) == 0 ) return ( 0 ) ; return ( 1 ) ; }
Determine whether the name passed is a valid name for an actual
 attribute.
Determine whether the name passed is a valid name for an actual attribute .