Lines Matching refs:tfp
461 FILE *tfp; /* temp fp */ in repvals_to_file() local
481 if ((tfp = fdopen(tfd, "w")) == NULL) { in repvals_to_file()
489 if (fprintf(tfp, "%lld\n", spval->val) <= 0) { in repvals_to_file()
490 (void) fclose(tfp); in repvals_to_file()
495 if (fclose(tfp) != 0) { in repvals_to_file()
536 FILE *tfp; /* temp fp */ in store_retrieve_rep_vals() local
562 if ((tfp = fopen(genfmri_filename, "r")) == NULL) { in store_retrieve_rep_vals()
571 while ((fscanf_ret = fscanf(tfp, "%lld", &tval)) == 1) { in store_retrieve_rep_vals()
588 if (fclose(tfp) != 0) { in store_retrieve_rep_vals()
642 FILE *tfp; /* temp fp */ in add_remove_contract() local
663 if ((tfp = fopen(genfmri_filename, "a")) == NULL) { in add_remove_contract()
673 if (fprintf(tfp, "%llu\n", (uint64_t)ctid) <= 0) { in add_remove_contract()
674 (void) fclose(tfp); in add_remove_contract()
679 if (fclose(tfp) != 0) { in add_remove_contract()