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