Lines Matching defs:fp
735 FILE *fp;
745 if ((fp = fopen(fname, "r")) == NULL)
748 if ((line = fgetln(fp, &sz)) == NULL)
757 for (i = 0; (line = fgetln(fp, &sz)) != NULL; i++) {
785 (void) fclose(fp);
796 FILE *fp;
806 if ((fp = fopen(fname, "w")) == NULL)
809 if (fchmod(fileno(fp), S_IRUSR|S_IWUSR) == -1)
811 if (fputs(hist_cookie, fp) == EOF)
832 (void) fprintf(fp, "%s\n", ptr);
837 (void) fclose(fp);