Lines Matching refs:fp
40 int FlushAndSync(FILE *fp);
44 FILE *fp = fopen(filename, "r");
45 if (!fp) {
50 int ret = fseek(fp, 0L, SEEK_END);
52 size = ftell(fp);
54 fclose(fp);
59 static FILE *FileClear(FILE **fp, const char *filename)
61 if (*fp != NULL) {
62 fclose(*fp);
64 *fp = fopen(filename, "w");
65 if (*fp == NULL) {
69 return *fp;
104 int FlushAndSync(FILE *fp)
106 if (fp == NULL) {
109 if (fflush(fp) != 0) {
112 int fd = fileno(fp);