kernel/acpica/compiler/cvparser.c
/*******************************************************************************
 *
 * FUNCTION:    CvIsFilename
 *
 * PARAMETERS:  filename - input filename
 *
 * RETURN:      BOOLEAN - TRUE if all characters are between 0x20 and 0x7f
 *
 * DESCRIPTION: Take a given char * and see if it contains all printable
 *              characters. If all characters have hexvalues 20-7f and ends with
 *              .dsl, we will assume that it is a proper filename.
 *
 ******************************************************************************/
CvIsFilename
PARAMETERS:  filename - input filename

TRUE if all characters are between 0x20 and 0x7f

Take a given char * and see if it contains all printable
characters. If all characters have hexvalues 20-7f and ends with
.dsl, we will assume that it is a proper filename.
CvIsFilename PARAMETERS : filename - input filename TRUE if all characters are between 0x20 and 0x7f Take a given char * and see if it contains all printable characters . If all characters have hexvalues 20 - 7f and ends with . dsl we will assume that it is a proper filename .
static BOOLEAN
CvIsFilename (
    char                    *Filename)
{
    UINT64                  Length = strlen(Filename);
    char                    *FileExt = Filename + Length - 4;
    UINT64                  i;
    if ((Length > 4) && AcpiUtStricmp (FileExt, ".dsl"))
    {
        return (FALSE);
    }
    for(i = 0; i<Length; ++i)
    {
        if (!isprint ((int) Filename[i]))
        {
            return (FALSE);
        }
    }
    return (TRUE);
}
static BOOLEAN CvIsFilename ( char * Filename ) { UINT64 Length = strlen ( Filename ) ; char * FileExt = Filename + Length - 4 ; UINT64 i ; if ( ( Length > 4 ) && AcpiUtStricmp ( FileExt , " " ) ) { return ( FALSE ) ; } for ( i = 0 ; i < Length ; ++ i ) { if ( ! isprint ( ( int ) Filename [ i ] ) ) { return ( FALSE ) ; } } return ( TRUE ) ; }
FUNCTION:    CvIsFilename
 PARAMETERS:  filename - input filename
FUNCTION : CvIsFilename PARAMETERS : filename - input filename