Lines Matching defs:file
124 fprintf(outfile, "%sAubinator: Intel AUB file decoder.%-80s%s\n",
210 struct aub_file *file;
214 file = calloc(1, sizeof *file);
215 if (file == NULL)
221 free(file);
227 free(file);
231 file->map = mmap(NULL, sb.st_size,
233 if (file->map == MAP_FAILED) {
235 free(file);
241 file->cursor = file->map;
242 file->end = file->map + sb.st_size;
244 return file;
248 aub_file_more_stuff(struct aub_file *file)
250 return file->cursor < file->end || (file->stream && !feof(file->stream));
281 print_help(const char *progname, FILE *file)
283 fprintf(file,
285 "Decode aub file contents from FILE.\n\n"
300 struct aub_file *file;
376 file = aub_file_open(input_file);
377 if (!file) {
378 fprintf(stderr, "Unable to allocate buffer to open aub file\n");
398 while (aub_file_more_stuff(file) &&
399 (consumed = aub_read_command(&aub_read, file->cursor,
400 file->end - file->cursor)) > 0) {
401 file->cursor += consumed;
409 free(file);