Lines Matching refs:file
83 FILE *file; in main() local
187 file = fopen(write_filename, "r"); in main()
188 if (!file) { in main()
193 if (fstat(fileno(file), &buf) < 0) { in main()
208 if (fread(&buffer[sizeof(uint32_t)], 1, length, file) < (size_t)length) { in main()
241 fclose(file); in main()
245 file = fopen(read_filename, "w"); in main()
246 if (!file) { in main()
257 if (fwrite(buffer, 1, length, file) < (size_t)length) in main()
282 if (fwrite(buffer, 1, tot_len(length), file) < tot_len(length)) in main()
301 fclose(file); in main()