Lines Matching refs:fout
42 FILE* fout = fopen(filename, "a"); in writePackagesList() local
43 if (fout == NULL) { in writePackagesList()
47 if (TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_EX)) != 0) { in writePackagesList()
48 fclose(fout); in writePackagesList()
52 if (TEMP_FAILURE_RETRY(ftruncate(fileno(fout), 0)) != 0) { in writePackagesList()
53 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList()
54 fclose(fout); in writePackagesList()
60 fprintf(fout, "%s %s\n", overlay.apk_path.string(), overlay.idmap_path.string()); in writePackagesList()
63 TEMP_FAILURE_RETRY(fflush(fout)); in writePackagesList()
64 TEMP_FAILURE_RETRY(flock(fileno(fout), LOCK_UN)); in writePackagesList()
65 fclose(fout); in writePackagesList()