Lines Matching refs:fp
50 * Reads from fp and dynamically reallocates the buffer if necessary.
53 static int super_fgets(char **buf, size_t *bufsize, FILE *fp) {
60 r = fgets(p, (int)real_bufsize, fp);
61 if (feof(fp) && !r)
97 FILE *fp;
101 fp = NULL;
103 fp = fopen(cfile, "rF");
104 if (!fp)
105 if (!(fp = fopen(SLP_DEFAULT_CONFIG_FILE, "rF"))) {
113 (void) fclose(fp);
117 while (!feof(fp)) {
122 err = super_fgets(&buf, &buflen, fp);
127 ferror(fp));
128 (void) fclose(fp);
151 (void) fclose(fp);