Home
last modified time | relevance | path

Searched refs:tempname (Results 1 – 17 of 17) sorted by relevance

/mirbsd/src/usr.bin/mail/
Dedit.c147 char *edit, tempname[PATHSIZE]; in run_editor() local
150 (void)snprintf(tempname, sizeof(tempname), in run_editor()
152 if ((t = mkstemp(tempname)) == -1 || in run_editor()
154 warn("%s", tempname); in run_editor()
158 warn("%s", tempname); in run_editor()
159 (void)rm(tempname); in run_editor()
175 warn("%s", tempname); in run_editor()
176 (void)rm(tempname); in run_editor()
181 warn("%s", tempname); in run_editor()
182 (void)rm(tempname); in run_editor()
[all …]
Dquit.c79 char *mbox, tempname[PATHSIZE]; in quit() local
119 (void)snprintf(tempname, sizeof(tempname), in quit()
121 if ((fd = mkstemp(tempname)) == -1 || in quit()
138 if ((rbuf = Fopen(tempname, "r")) == NULL) in quit()
140 (void)rm(tempname); in quit()
211 (void)snprintf(tempname, sizeof(tempname), in quit()
213 if ((fd = mkstemp(tempname)) == -1 || in quit()
215 warn("%s", tempname); in quit()
220 if ((ibuf = Fopen(tempname, "r")) == NULL) { in quit()
221 warn("%s", tempname); in quit()
[all …]
Dcollect.c72 char linebuf[LINESIZE], tempname[PATHSIZE], *cp; in collect() local
85 (void)snprintf(tempname, sizeof(tempname), in collect()
87 if ((fd = mkstemp(tempname)) == -1 || in collect()
89 warn("%s", tempname); in collect()
92 (void)rm(tempname); in collect()
321 if (forward(linebuf + 2, collf, tempname, c) < 0) in collect()
470 char *shell, tempname[PATHSIZE]; in mespipe() local
475 (void)snprintf(tempname, sizeof(tempname), in mespipe()
477 if ((fd = mkstemp(tempname)) == -1 || in mespipe()
479 warn("%s", tempname); in mespipe()
[all …]
Dsend.c457 char tempname[PATHSIZE]; in infix() local
459 (void)snprintf(tempname, sizeof(tempname), in infix()
461 if ((fd = mkstemp(tempname)) == -1 || in infix()
463 warn("%s", tempname); in infix()
466 if ((nfi = Fopen(tempname, "r")) == NULL) { in infix()
467 warn("%s", tempname); in infix()
469 (void)rm(tempname); in infix()
472 (void)rm(tempname); in infix()
486 warn("%s", tempname); in infix()
Dlex.c67 char tempname[PATHSIZE]; in setfile() local
132 (void)snprintf(tempname, sizeof(tempname), in setfile()
134 if ((fd = mkstemp(tempname)) == -1 || in setfile()
136 err(1, "%s", tempname); in setfile()
138 if ((itf = fopen(tempname, "r")) == NULL) in setfile()
139 err(1, "%s", tempname); in setfile()
141 (void)rm(tempname); in setfile()
Dnames.c241 char tempname[PATHSIZE]; in outof() local
243 (void)snprintf(tempname, sizeof(tempname), in outof()
245 if ((fd = mkstemp(tempname)) == -1 || in outof()
247 warn("%s", tempname); in outof()
251 image = open(tempname, O_RDWR); in outof()
252 (void)rm(tempname); in outof()
254 warn("%s", tempname); in outof()
268 warn("%s", tempname); in outof()
/mirbsd/src/usr.bin/chpass/
Dedit.c59 edit(tempname, pw) in edit() argument
60 char *tempname; in edit()
66 if (lstat(tempname, &begin) == -1 || S_ISLNK(begin.st_mode))
68 pw_edit(1, tempname);
69 if (lstat(tempname, &end) == -1 || S_ISLNK(end.st_mode))
76 if (verify(tempname, pw))
89 display(tempname, fd, pw) in display() argument
90 char *tempname; in display()
99 pw_error(tempname, 1, 1);
142 verify(tempname, pw) in verify() argument
[all …]
Dchpass.c170 char tempname[] = _PATH_VARTMP "pw.XXXXXXXXXX"; in main() local
175 dfd = mkstemp(tempname); in main()
177 pw_error(tempname, 1, 1); in main()
178 display(tempname, dfd, pw); in main()
179 edit_status = edit(tempname, pw); in main()
181 unlink(tempname); in main()
191 pw_error(tempname, 1, 1); in main()
/mirbsd/src/libexec/makewhatis/OpenBSD/Makewhatis/
DWhatis.pm37 my ($out, $tempname);
38 … ($out, $tempname) = tempfile('/tmp/makewhatis.XXXXXXXXXX') or die "$0: Can't open temporary file";
49 if (compare($tempname, $f) == 0) {
50 unlink($tempname);
55 if (File::Copy::move($tempname, $f)) {
60 unlink($tempname);
/mirbsd/src/gnu/usr.bin/texinfo/m4/
Dmkstemp.m444 AC_LIBOBJ(tempname)
57 # Prerequisites of lib/tempname.c.
/mirbsd/src/gnu/usr.bin/cvs/m4/
Dmkstemp.m452 AC_LIBOBJ(tempname)
65 # Prerequisites of lib/tempname.c.
Dgnulib-comp.m4246 lib/tempname.c
/mirbsd/src/usr.bin/oldroff/nroff/
Dn1.c432 static char tempname[] = "/tmp/taXXXXX"; local
434 register char *p = tempname;
440 p = mktemp(tempname);
448 ibf = mkstemp(tempname);
/mirbsd/src/sbin/fsck_ffs/
Ddir.c385 char tempname[BUFSIZ]; in linkup() local
456 (void)lftempname(tempname, orphan); in linkup()
457 if (makeentry(lfdir, orphan, tempname) == 0) { in linkup()
/mirbsd/src/sbin/fsck_ext2fs/
Ddir.c368 char tempname[BUFSIZ]; in linkup() local
439 (void)lftempname(tempname, orphan); in linkup()
440 if (makeentry(lfdir, orphan, tempname) == 0) { in linkup()
/mirbsd/src/gnu/usr.bin/cvs/lib/
DMakefile.in74 strftime.h strtol.c strtoul.c sunos57-select.c tempname.c \
/mirbsd/src/gnu/usr.bin/lynx/
DCHANGES9095 * eliminate 'tempname()' function, using LYNewTxtFile, etc., with new functions
9157 * correct missing counter increment in tempname(), from cleanup - TD
9171 * reduce a little of the clutter in tempname() with fmt_tempname, and