Lines Matching refs:fp
32 FILE* fp = fopen(tf.path, "we"); in FillFile() local
33 for (size_t i = 0; i < 4096; ++i) fputs(line, fp); in FillFile()
34 fclose(fp); in FillFile()
41 FILE* fp = fopen("/dev/zero", "r+e"); in ReadWriteTest() local
42 __fsetlocking(fp, FSETLOCKING_BYCALLER); in ReadWriteTest()
46 setvbuf(fp, nullptr, _IONBF, 0); in ReadWriteTest()
50 if (f(buf, chunk_size, 1, fp) != 1) { in ReadWriteTest()
57 fclose(fp); in ReadWriteTest()
85 FILE* fp = fopen(tf.path, "re"); in FopenFgetlnFclose() local
86 if (no_locking) __fsetlocking(fp, FSETLOCKING_BYCALLER); in FopenFgetlnFclose()
88 while (fgetln(fp, &length) != nullptr) { in FopenFgetlnFclose()
90 fclose(fp); in FopenFgetlnFclose()
110 FILE* fp = fopen(tf.path, "re"); in FopenFgetsFclose() local
111 if (no_locking) __fsetlocking(fp, FSETLOCKING_BYCALLER); in FopenFgetsFclose()
112 while (fgets(buf, sizeof(buf), fp) != nullptr) { in FopenFgetsFclose()
114 fclose(fp); in FopenFgetsFclose()
132 FILE* fp = fopen(tf.path, "re"); in FopenGetlineFclose() local
133 if (no_locking) __fsetlocking(fp, FSETLOCKING_BYCALLER); in FopenGetlineFclose()
136 while (getline(&line, &n, fp) != -1) { in FopenGetlineFclose()
139 fclose(fp); in FopenGetlineFclose()
156 FILE* fp = fopen("/dev/zero", "re"); in FopenFgetcFclose() local
157 if (no_locking) __fsetlocking(fp, FSETLOCKING_BYCALLER); in FopenFgetcFclose()
159 benchmark::DoNotOptimize(fgetc(fp)); in FopenFgetcFclose()
161 fclose(fp); in FopenFgetcFclose()