HomeSort by: relevance | last modified time | path
    Searched defs:tempname (Results 1 - 18 of 18) sorted by relevancy

  /src/usr.sbin/acpitools/aml/
aml_env.h 44 struct aml_name tempname; member in struct:aml_environ
  /src/usr.bin/chpass/
chpass.c 66 static char tempname[] = "/tmp/pw.XXXXXX"; variable in typeref:typename:char[]
227 dfd = mkstemp(tempname);
229 (*Pw_error)(tempname, 1, 1);
234 if (stat(dirname(tempname), &sb) == -1)
235 err(1, "couldn't stat `%s'", dirname(tempname));
238 dirname(tempname));
240 display(tempname, dfd, pw);
241 edit(tempname, pw);
315 (void)unlink(tempname);
  /src/usr.bin/mail/
edit.c 65 char tempname[PATHSIZE]; local in function:run_editor
68 (void)snprintf(tempname, sizeof(tempname),
70 if ((t = mkstemp(tempname)) == -1) {
71 warn("%s", tempname);
76 warn("%s", tempname);
77 (void)unlink(tempname);
82 warn("%s", tempname);
83 (void)unlink(tempname);
95 warn("%s", tempname);
    [all...]
quit.c 144 char tempname[PATHSIZE]; local in function:edstop
176 (void)snprintf(tempname, sizeof(tempname),
178 if ((fd = mkstemp(tempname)) == -1 ||
180 warn("%s", tempname);
189 (void)rm(tempname);
198 warn("%s", tempname);
201 (void)rm(tempname);
207 if ((ibuf = Fopen(tempname, "ref")) == NULL) {
208 warn("%s", tempname);
274 char tempname[PATHSIZE]; local in function:quit
    [all...]
collect.c 160 char tempname[PATHSIZE]; local in function:mespipe
165 (void)snprintf(tempname, sizeof(tempname),
167 if ((fd = mkstemp(tempname)) == -1 ||
171 warn("%s", tempname);
174 (void)unlink(tempname);
374 char tempname[PATHSIZE]; local in function:collect
634 (void)snprintf(tempname, sizeof(tempname),
636 if ((fd = mkstemp(tempname)) == -1 |
    [all...]
names.c 255 char tempname[PATHSIZE]; local in function:outof
289 (void)snprintf(tempname, sizeof(tempname),
291 if ((fd = mkstemp(tempname)) == -1 ||
295 warn("%s", tempname);
299 image = open(tempname, O_RDWR | O_CLOEXEC);
300 (void)unlink(tempname);
302 warn("%s", tempname);
319 warn("%s", tempname);
send.c 485 char tempname[PATHSIZE]; local in function:infix
487 (void)snprintf(tempname, sizeof(tempname),
489 if ((fd = mkstemp(tempname)) == -1 ||
493 warn("%s", tempname);
496 if ((nfi = Fopen(tempname, "ref")) == NULL) {
497 warn("%s", tempname);
499 (void)rm(tempname);
502 (void)rm(tempname);
522 warn("%s", tempname);
    [all...]
lex.c 213 char tempname[PATHSIZE]; local in function:setfile
279 (void)snprintf(tempname, sizeof(tempname),
281 if ((fd = mkstemp(tempname)) == -1 ||
283 err(EXIT_FAILURE, "Can't create tmp file `%s'", tempname);
284 if ((itf = fopen(tempname, "ref")) == NULL)
285 err(EXIT_FAILURE, "Can't create tmp file `%s'", tempname);
286 (void)rm(tempname);
mime_attach.c 612 char tempname[PATHSIZE]; local in function:mktemp_file
614 (void)snprintf(tempname, sizeof(tempname), "%s/%sXXXXXXXXXX",
616 if ((fd = mkstemp(tempname)) == -1 ||
620 warn("%s", tempname);
623 (void)rm(tempname);
626 warn("%s", tempname);
list.c 622 char *tempname; local in function:matchbody
625 (void)sasprintf(&tempname, "%s/mail.RbXXXXXXXXXX", tmpdir);
627 if ((fd = mkstemp(tempname)) != -1) {
628 (void)unlink(tempname);
633 warn("%s", tempname);
  /src/usr.bin/rdist/
main.c 63 char *tempname; variable in typeref:typename:char *
106 if ((tempname = strrchr(tempfile, '/')) != 0)
107 tempname++;
109 tempname = tempfile;
  /src/usr.bin/shlock/
shlock.c 128 static char tempname[BUFSIZ]; local in function:xtmpfile
131 if ((cp = strrchr(strcpy(tempname, file), '/')) != NULL) {
133 (void) strcat(tempname, buf);
135 (void) strcpy(tempname, buf);
136 dprintf("%s: temporary filename: %s\n", Pname, tempname);
140 while ((fd = open(tempname, O_RDWR|O_CREAT|O_TRUNC|O_SYNC|O_EXCL, 0644))
145 if (unlink(tempname) == -1) {
146 warn(E_unlk, tempname);
151 warn(E_open, tempname);
165 warn("write(%s,%jd)", tempname, (intmax_t)pid)
    [all...]
  /src/sbin/fsck_ext2fs/
dir.c 402 char tempname[BUFSIZ]; local in function:linkup
473 (void)lftempname(tempname, orphan);
474 if (makeentry(lfdir, orphan, tempname) == 0) {
  /src/sbin/fsck_lfs/
dir.c 428 char tempname[BUFSIZ]; local in function:linkup
502 (void) lftempname(tempname, orphan);
503 if (makeentry(lfdir, orphan, tempname) == 0) {
  /src/sbin/fsck_ffs/
dir.c 565 char tempname[BUFSIZ]; local in function:linkup
659 (void)lftempname(tempname, orphan);
660 if (makeentry(lfdir, orphan, (name ? name : tempname)) == 0) {
  /src/libexec/makewhatis/
makewhatis.c 775 char tempname[MAXPATHLEN], buffer[65536], *data; local in function:nroff
787 (void)strlcpy(tempname, _PATH_TMP "makewhatis.XXXXXX",
788 sizeof(tempname));
789 if ((tempfd = mkstemp(tempname)) == -1)
800 (void)unlink(tempname);
805 (void)unlink(tempname);
810 (void)unlink(tempname);
819 (void)unlink(tempname);
851 (void)unlink(tempname);
867 (void)unlink(tempname);
    [all...]
  /src/usr.sbin/sysinst/
util.c 1975 char *rcconf, *tempname = NULL, *bakname = NULL; local in function:del_rc_conf
1984 || asprintf(&tempname, "%s", target_expand("/etc/rc.conf.tmp.XXXXXX")) < 0
1988 if (tempname)
1989 free(tempname);
2002 if (!(fp = fopen(rcconf, "r+")) || (fd = mkstemp(tempname)) < 0) {
2044 if (rename(tempname, rcconf)) {
2057 (void)unlink(tempname);
2059 free(tempname);
  /src/lib/libc/time/
zic.c 656 remove TEMPNAME if nonnull, and then exit. */
659 char const *tempname)
670 if (tempname)
671 remove(tempname);
1370 /* Prepare to write to the file *OUTNAME, using *TEMPNAME to store the
1373 *TEMPNAME. If *TEMPNAME is null, allocate the name of any such
1374 temporary file; otherwise, reuse *TEMPNAME's storage, which is
1377 open_outfile(char const **outname, char **tempname)
1387 if (!*tempname)
1486 char *tempname = NULL; local in function:dolink
2428 char *tempname = NULL; local in function:writezone
    [all...]

Completed in 24 milliseconds