Home | History | Annotate | Download | only in acpisrc

Lines Matching defs:File

22  * copy of the source code appearing in this file ("Covered Code") an
48 * contain a file documenting the changes Licensee made to create that Covered
49 * Code and the date of any change. Licensee must include in that file the
225 * wildcard and the requested file type
229 /* Looking for directory files, must check file type */
250 /* Otherwise, this is a file, not a directory */
252 VERBOSE_PRINT (("File: %s\n", Filename));
319 /* Do the Lex file(s) */
324 /* Do the yacc file(s) */
386 printf ("%s: ****File has UNIX format**** (LF only, not CR/LF) %u lines\n",
392 printf ("%s: %u lone linefeeds in file\n", Filename, LfCount);
406 * DESCRIPTION: Perform the requested transforms on the file buffer (as
464 printf ("Unknown file type, cannot process\n");
655 * PARAMETERS: FileBuffer - Buffer with contents of entire file
656 * FileSize - Size of the file and buffer
660 * DESCRIPTION: Scan a file for any non-printable ASCII bytes.
674 /* Scan entire file for any non-printable characters */
682 "at file offset: %8u (0x%X)\n", Byte, i, i);
695 * DESCRIPTION: Process one source file. The file is opened, read entirely
696 * into a buffer, converted, then written to a new file.
714 /* Allocate a file pathname buffer for both source and target */
719 printf ("Could not allocate buffer for file pathnames\n");
725 /* Generate the source pathname and read the file */
740 /* Exit now if simply checking the file for printable ascii chars */
755 Gbl_HeaderSize = LINES_IN_LEGAL_HEADER; /* Normal C file and H header */
759 Gbl_HeaderSize = LINES_IN_LINUX_HEADER; /* Linuxized C file and H header */
762 /* Process the file in the buffer */
769 * (when file is written, Windows version only)
781 /* Generate the target pathname and write the file */
787 printf ("Could not allocate buffer for file pathnames\n");
817 * DESCRIPTION: Check if the current file is a valid directory. If not,
874 * DESCRIPTION: Open a file and read it entirely into a an allocated buffer
884 FILE *File;
892 File = fopen (Filename, "rb");
893 if (!File)
895 printf ("Could not open file %s\n", Filename);
899 /* Need file size to allocate a buffer */
901 Size = CmGetFileSize (File);
904 printf ("Could not get file size for %s\n", Filename);
909 * Create a buffer for the entire file
921 /* Read the entire file */
923 Actual = fread (Buffer, 1, Size, File);
926 printf ("Could not read the input file %s (%u bytes)\n",
932 fclose (File);
934 /* This option checks the entire file for non-printable chars */
940 printf ("File contains only printable ASCII characters\n");
965 fclose (File);
974 * DESCRIPTION: Create a new output file and write the entire contents of the
975 * buffer to the new file. Buffer must be a zero terminated string
985 FILE *File;
991 /* Create the target file */
1000 File = fopen (Pathname, "w+b");
1001 if (!File)
1003 perror ("Could not create destination file");
1004 printf ("Could not create destination file \"%s\"\n", Pathname);
1008 /* Write the buffer to the file */
1011 Actual = fwrite (FileBuffer, 1, FileSize, File);
1014 printf ("Error writing output file \"%s\"\n", Pathname);
1018 fclose (File);