Lines Matching defs:FileId
127 * PARAMETERS: FileId - Index into file info array
139 UINT32 FileId,
143 sprintf (MsgBuffer, "\"%s\" (%s) - %s", Gbl_Files[FileId].Filename,
144 Gbl_Files[FileId].Description, strerror (errno));
154 * PARAMETERS: FileId - Index into file info array
167 UINT32 FileId,
174 Gbl_Files[FileId].Filename = Filename;
175 Gbl_Files[FileId].Handle = NULL;
180 FlFileError (FileId, ASL_MSG_OPEN);
184 Gbl_Files[FileId].Handle = File;
192 * PARAMETERS: FileId - Index into file info array
203 UINT32 FileId)
208 FileSize = CmGetFileSize (Gbl_Files[FileId].Handle);
222 * PARAMETERS: FileId - Index into file info array
235 UINT32 FileId,
244 Actual = fread (Buffer, 1, Length, Gbl_Files[FileId].Handle);
247 if (feof (Gbl_Files[FileId].Handle))
254 FlFileError (FileId, ASL_MSG_READ);
266 * PARAMETERS: FileId - Index into file info array
279 UINT32 FileId,
288 Actual = fwrite ((char *) Buffer, 1, Length, Gbl_Files[FileId].Handle);
291 FlFileError (FileId, ASL_MSG_WRITE);
295 if ((FileId == ASL_FILE_PREPROCESSOR) && Gbl_PreprocessorOutputFlag)
303 FlFileError (FileId, ASL_MSG_WRITE);
314 * PARAMETERS: FileId - Index into file info array
327 UINT32 FileId,
336 Actual = vfprintf (Gbl_Files[FileId].Handle, Format, Args);
341 FlFileError (FileId, ASL_MSG_WRITE);
345 if ((FileId == ASL_FILE_PREPROCESSOR) &&
364 FlFileError (FileId, ASL_MSG_WRITE);
375 * PARAMETERS: FileId - Index into file info array
387 UINT32 FileId,
393 Error = fseek (Gbl_Files[FileId].Handle, Offset, SEEK_SET);
396 FlFileError (FileId, ASL_MSG_SEEK);
406 * PARAMETERS: FileId - Index into file info array
416 UINT32 FileId)
421 if (!Gbl_Files[FileId].Handle)
426 Error = fclose (Gbl_Files[FileId].Handle);
429 FlFileError (FileId, ASL_MSG_CLOSE);
435 Gbl_Files[FileId].Handle = NULL;
444 * PARAMETERS: FileId - Index into file info array
454 UINT32 FileId)
456 ASL_FILE_INFO *Info = &Gbl_Files[FileId];