Lines Matching refs:mfp
433 FILE *mfp = NULL;
546 if ((mfp = fopen(META_DBCONF, "w+")) == NULL)
549 if (fputs(line, mfp) == NULL)
554 if (fflush(mfp) != 0)
556 if (fsync(fileno(mfp)) != 0)
558 if (fclose(mfp) != 0) {
559 mfp = NULL;
1186 FILE *mfp = NULL;
1245 if ((mfp = fopen(sname, "w+")) == NULL)
1248 if (fputs(line, mfp) == NULL)
1253 if (fflush(mfp) != 0)
1255 if (fsync(fileno(mfp)) != 0)
1257 if (fclose(mfp) != 0) {
1258 mfp = NULL;