Lines Matching refs:tfp
63 FILE **tfp, /* returned open FILE */
76 assert(tfp != NULL);
79 *tfp = NULL;
93 if ((*tfp = fopen(*tname, "w")) == NULL) {
109 if ((*tfp = fopen(*tname, "w")) == NULL) {
115 if ((fchmod(fileno(*tfp), (sbuf.st_mode & 0777))
117 (fchown(fileno(*tfp), sbuf.st_uid, sbuf.st_gid)
156 if (fputs(buf, *tfp) == EOF) {
181 if ((fflush(*tfp) != 0) ||
182 (fsync(fileno(*tfp)) != 0)) {
199 if (*tfp != NULL)
200 (void) fclose(*tfp);
212 FILE *tfp, /* temp FILE */
224 assert(!doit || tfp != NULL);
237 if (fprintf(tfp, "%s", BEGROOTSTR) == EOF) {
247 if (fprintf(tfp, "rootdev:%s\n", longblkname) == EOF) {
258 if (fprintf(tfp, "%s", ENDROOTSTR) == EOF) {
265 if ((fflush(tfp) != 0) ||
266 (fsync(fileno(tfp)) != 0)) {
341 FILE *tfp, /* temp FILE */
365 assert(!doit || tfp != NULL);
389 if (fprintf(tfp, "%s", BEGMDDBSTR) == EOF) {
442 if (fprintf(tfp, "%s\";\n", line) <= 0) {
458 if (fprintf(tfp, "%s", ENDMDDBSTR) == EOF) {
474 if ((fflush(tfp) != 0) ||
475 (fsync(fileno(tfp)) != 0)) {