Lines Matching refs:f

223 	static BOOLEAN (WINAPI *f)(LPCSTR, LPCSTR, DWORD);  in my_CreateSymbolicLinkA()
232 f = GetFunctionKernel32("CreateSymbolicLinkA"); in my_CreateSymbolicLinkA()
234 if (f == NULL) in my_CreateSymbolicLinkA()
305 ret = (*f)(src, tgt, tmpflags); in my_CreateSymbolicLinkA()
311 ret = (*f)(src, tgt, flags); in my_CreateSymbolicLinkA()
321 static BOOLEAN (WINAPI *f)(LPCSTR, LPCSTR, LPSECURITY_ATTRIBUTES); in my_CreateHardLinkA()
325 f = GetFunctionKernel32("CreateHardLinkA"); in my_CreateHardLinkA()
327 return f == NULL ? 0 : (*f)(linkname, target, NULL); in my_CreateHardLinkA()
998 FILE *f; in assertion_empty_file() local
1013 f = fopen(f1, "rb"); in assertion_empty_file()
1014 if (f == NULL) { in assertion_empty_file()
1019 s = fread(buff, 1, s, f); in assertion_empty_file()
1021 fclose(f); in assertion_empty_file()
1091 assertion_file_exists(const char *filename, int line, const char *f) in assertion_file_exists() argument
1096 if (!_access(f, 0)) in assertion_file_exists()
1099 if (!access(f, F_OK)) in assertion_file_exists()
1102 failure_start(filename, line, "File should exist: %s", f); in assertion_file_exists()
1109 assertion_file_not_exists(const char *filename, int line, const char *f) in assertion_file_not_exists() argument
1114 if (_access(f, 0)) in assertion_file_not_exists()
1117 if (access(f, F_OK)) in assertion_file_not_exists()
1120 failure_start(filename, line, "File should not exist: %s", f); in assertion_file_not_exists()
1130 FILE *f; in assertion_file_contents() local
1135 f = fopen(fn, "rb"); in assertion_file_contents()
1136 if (f == NULL) { in assertion_file_contents()
1143 n = (int)fread(contents, 1, s * 2, f); in assertion_file_contents()
1144 fclose(f); in assertion_file_contents()
1168 FILE *f; in assertion_text_file_contents() local
1172 f = fopen(fn, "r"); in assertion_text_file_contents()
1173 if (f == NULL) { in assertion_text_file_contents()
1181 n = (int)fread(contents, 1, s * 2 + 128 - 1, f); in assertion_text_file_contents()
1184 fclose(f); in assertion_text_file_contents()
1972 FILE *f; in assertion_make_file() local
1975 f = fopen(path, "wb"); in assertion_make_file()
1976 if (f == NULL) { in assertion_make_file()
1988 if (wsize != fwrite(contents, 1, wsize, f)) { in assertion_make_file()
1989 fclose(f); in assertion_make_file()
1996 fclose(f); in assertion_make_file()
3127 FILE *f; in slurpfile() local
3134 f = fopen(filename, "rb"); in slurpfile()
3135 if (f == NULL) { in slurpfile()
3139 r = fstat(fileno(f), &st); in slurpfile()
3142 fclose(f); in slurpfile()
3149 fclose(f); in slurpfile()
3152 bytes_read = fread(p, 1, (size_t)st.st_size, f); in slurpfile()
3155 fclose(f); in slurpfile()
3162 fclose(f); in slurpfile()
3175 FILE *f; in dumpfile() local
3177 f = fopen(filename, "wb"); in dumpfile()
3178 if (f == NULL) { in dumpfile()
3182 bytes_written = fwrite(data, 1, len, f); in dumpfile()
3185 fclose(f); in dumpfile()