Lines Matching refs:sfn
202 char *sfn = NULL; /* scratch file name */ variable
220 (void)asprintf(&sfn, "%sed.XXXXXX", tmp); in open_sbuf()
222 (void)asprintf(&sfn, "%s/ed.XXXXXX", tmp); in open_sbuf()
223 if (sfn == NULL) { in open_sbuf()
231 if ((fd = mkstemp(sfn)) == -1 || (sfp = fdopen(fd, "w+")) == NULL) { in open_sbuf()
234 warn("%s", sfn); in open_sbuf()
250 fprintf(stderr, "%s: %s\n", sfn, strerror(errno)); in close_sbuf()
255 if (sfn) { in close_sbuf()
256 unlink(sfn); in close_sbuf()
257 free(sfn); in close_sbuf()
258 sfn = NULL; in close_sbuf()
272 if (sfn) { in quit()
273 unlink(sfn); in quit()
274 free(sfn); in quit()
275 sfn = NULL; in quit()