Lines Matching defs:tfp
55 FILE *tfp = NULL;
66 if ((tfp = fopen(tname, "w")) == NULL)
69 (void) fchmod(fileno(tfp), (sbuf.st_mode & 0777));
70 (void) fchown(fileno(tfp), sbuf.st_uid, sbuf.st_gid);
76 "# do not hand edit\n"), tfp) == EOF) {
82 if (meta_print_all(sp, tname, NULL, tfp, options, NULL, ep) != 0)
86 if (fclose(tfp) != 0) {
90 tfp = NULL;
99 if ((tfp = fopen(tname, "r")) == NULL) {
105 while (fgets(line, 1000, tfp) != NULL) {
111 if (fclose(tfp) != 0) {
112 tfp = NULL;
115 tfp = NULL;
140 if (tfp != NULL) {
141 (void) fclose(tfp);