Lines Matching defs:fp
107 fgetline(FILE *fp)
132 while (lastc = c, (c = getc(fp)) != EOF) {
231 put_minor_range(FILE *fp, fileentry_t *old, const char *devn, const char *tail,
236 (void) fwrite(old->rawbuf, 1, old->orgentry - old->rawbuf, fp);
239 put_minor_range(fp, NULL, devn, tail, lo, hi, 'b');
240 put_minor_range(fp, NULL, devn, tail, lo, hi, 'c');
242 (void) fprintf(fp, "%s:(%d)%c%s", devn, (int)lo, type, tail);
244 (void) fprintf(fp, "%s:(%d-%d)%c%s", devn, (int)lo, (int)hi,
629 FILE *fp;
658 fp = fopen(filename, "a");
659 if (fp == NULL)
662 (void) fputs(entry, fp);
664 if (fflush(fp) != 0 || fsync(fileno(fp)) != 0 || fclose(fp) != 0)