Lines Matching defs:tfp
65 FILE *tfp = NULL;
107 if ((tfp = fopen(*tname, "w")) == NULL) {
111 if (fchmod(fileno(tfp), (sbuf.st_mode & 0777)) != 0) {
115 if (fchown(fileno(tfp), sbuf.st_uid, sbuf.st_gid) != 0) {
136 if (fputs(buf, tfp) == EOF) {
158 if (fprintf(tfp, "%s\t%s\t%s\t%s\t%s\t%s\t%s\n",
183 if ((fflush(tfp) != 0) ||
184 (fsync(fileno(tfp)) != 0) ||
185 (fclose(tfp) != 0)) {
189 tfp = NULL;
199 if (tfp != NULL)
200 (void) fclose(tfp);