Home | History | Annotate | Download | only in src

Lines Matching defs:fp

423 	FILE *fp;
445 fp = fopen(path, "r");
446 if (fp) {
447 __fsetlocking(fp, FSETLOCKING_BYCALLER);
449 if (fstat(fileno(fp), &sb) < 0)
457 if (fread(&magic, sizeof magic, 1, fp) != 1) {
458 if (ferror(fp)) {
460 fclose(fp);
463 clearerr(fp);
468 fclose(fp);
469 fp = NULL;
472 rewind(fp);
487 if (!fp)
495 while (getline(&line_buf, &line_len, fp) > 0) {
501 rc = digest_add_specfile(digest, fp, NULL, sb.st_size, path);
505 if (fp)
506 fclose(fp);