Lines Matching refs:File
3 * Module Name: cmfsize - Common get file size function
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
164 * PARAMETERS: File - Open file descriptor
166 * RETURN: File Size. On error, -1 (ACPI_UINT32_MAX)
168 * DESCRIPTION: Get the size of a file. Uses seek-to-EOF. File must be open.
169 * Does not disturb the current file pointer.
175 ACPI_FILE File)
182 /* Save the current file pointer, seek to EOF to obtain file size */
184 CurrentOffset = ftell (File);
190 Status = fseek (File, 0, SEEK_END);
196 FileSize = ftell (File);
202 /* Restore original file pointer */
204 Status = fseek (File, CurrentOffset, SEEK_SET);
214 fprintf (stderr, "Could not get file offset\n");
218 fprintf (stderr, "Could not set file offset\n");