FreeBSD/sys/fs/udf/udf_vnops.c
/*
 * Compare a CS0 dstring with a name passed in from the VFS layer.  Return
 * 0 on a successful match, nonzero otherwise.  Unicode work may need to be done
 * here also.
 */
Compare a CS0 dstring with a name passed in from the VFS layer.  Return
0 on a successful match, nonzero otherwise.  Unicode work may need to be done
here also.
Compare a CS0 dstring with a name passed in from the VFS layer . Return 0 on a successful match nonzero otherwise . Unicode work may need to be done here also .
static int
udf_cmpname(char *cs0string, char *cmpname, int cs0len, int cmplen, struct udf_mnt *udfmp)
{
	char *transname;
	int error = 0;
	transname = uma_zalloc(udf_zone_trans, M_WAITOK);
	cs0len = udf_transname(cs0string, transname, cs0len, udfmp);
	if ((cs0len == 0) || (cs0len != cmplen))
		error = -1;
	else
		error = bcmp(transname, cmpname, cmplen);
	uma_zfree(udf_zone_trans, transname);
	return (error);
}
static int udf_cmpname ( char * cs0string , char * cmpname , int cs0len , int cmplen , struct udf_mnt * udfmp ) { char * transname ; int error = 0 ; transname = uma_zalloc ( udf_zone_trans , M_WAITOK ) ; cs0len = udf_transname ( cs0string , transname , cs0len , udfmp ) ; if ( ( cs0len == 0 ) || ( cs0len != cmplen ) ) error = -1 ; else error = bcmp ( transname , cmpname , cmplen ) ; uma_zfree ( udf_zone_trans , transname ) ; return ( error ) ; }
Compare a CS0 dstring with a name passed in from the VFS layer.
Compare a CS0 dstring with a name passed in from the VFS layer .
/* This is overkill, but not worth creating a new zone */ /* Easy check.  If they aren't the same length, they aren't equal */