| /openbsd-src/usr.bin/mail/ |
| H A D | edit.c | 153 char *edit, tempname[PATHSIZE]; in run_editor() local 156 (void)snprintf(tempname, sizeof(tempname), in run_editor() 158 if ((t = mkstemp(tempname)) == -1 || in run_editor() 160 warn("%s", tempname); in run_editor() 164 warn("%s", tempname); in run_editor() 165 (void)rm(tempname); in run_editor() 181 warn("%s", tempname); in run_editor() 182 (void)rm(tempname); in run_editor() 187 warn("%s", tempname); in run_editor() 188 (void)rm(tempname); in run_editor() [all …]
|
| H A D | quit.c | 71 char *mbox, tempname[PATHSIZE]; in quit() local 111 (void)snprintf(tempname, sizeof(tempname), in quit() 113 if ((fd = mkstemp(tempname)) == -1 || in quit() 130 if ((rbuf = Fopen(tempname, "r")) == NULL) in quit() 132 (void)rm(tempname); in quit() 193 (void)snprintf(tempname, sizeof(tempname), in quit() 195 if ((fd = mkstemp(tempname)) == -1 || in quit() 197 warn("%s", tempname); in quit() 202 if ((ibuf = Fopen(tempname, "r")) == NULL) { in quit() 203 warn("%s", tempname); in quit() [all …]
|
| H A D | collect.c | 63 char linebuf[LINESIZE], tempname[PATHSIZE], *cp; in collect() local 76 (void)snprintf(tempname, sizeof(tempname), in collect() 78 if ((fd = mkstemp(tempname)) == -1 || in collect() 80 warn("%s", tempname); in collect() 83 (void)rm(tempname); in collect() 312 if (forward(linebuf + 2, collf, tempname, c) < 0) in collect() 461 char *shell, tempname[PATHSIZE]; in mespipe() local 466 (void)snprintf(tempname, sizeof(tempname), in mespipe() 468 if ((fd = mkstemp(tempname)) == -1 || in mespipe() 470 warn("%s", tempname); in mespipe() [all …]
|
| H A D | send.c | 469 char tempname[PATHSIZE]; in infix() local 471 (void)snprintf(tempname, sizeof(tempname), in infix() 473 if ((fd = mkstemp(tempname)) == -1 || in infix() 475 warn("%s", tempname); in infix() 478 if ((nfi = Fopen(tempname, "r")) == NULL) { in infix() 479 warn("%s", tempname); in infix() 481 (void)rm(tempname); in infix() 484 (void)rm(tempname); in infix() 498 warn("%s", tempname); in infix()
|
| H A D | lex.c | 62 char tempname[PATHSIZE]; in setfile() local 125 (void)snprintf(tempname, sizeof(tempname), in setfile() 127 if ((fd = mkostemp(tempname, O_CLOEXEC)) == -1 || in setfile() 129 err(1, "%s", tempname); in setfile() 130 if ((itf = fopen(tempname, "re")) == NULL) in setfile() 131 err(1, "%s", tempname); in setfile() 132 (void)rm(tempname); in setfile()
|
| H A D | names.c | 236 char tempname[PATHSIZE]; in outof() local 238 (void)snprintf(tempname, sizeof(tempname), in outof() 240 if ((fd = mkstemp(tempname)) == -1 || in outof() 242 warn("%s", tempname); in outof() 246 image = open(tempname, O_RDWR | O_CLOEXEC); in outof() 247 (void)rm(tempname); in outof() 249 warn("%s", tempname); in outof() 262 warn("%s", tempname); in outof()
|
| /openbsd-src/usr.bin/chpass/ |
| H A D | edit.c | 51 edit(char *tempname, struct passwd *pw) in edit() argument 56 if (lstat(tempname, &begin) == -1 || S_ISLNK(begin.st_mode)) in edit() 58 pw_edit(1, tempname); in edit() 59 if (lstat(tempname, &end) == -1 || S_ISLNK(end.st_mode)) in edit() 66 if (verify(tempname, pw)) in edit() 79 display(char *tempname, int fd, struct passwd *pw) in display() argument 86 pw_error(tempname, 1, 1); in display() 129 verify(char *tempname, struct passwd *pw) in verify() argument 140 if ((fd = open(tempname, O_RDONLY|O_NOFOLLOW)) == -1 || in verify() 142 pw_error(tempname, 1, 1); in verify() [all …]
|
| H A D | chpass.c | 128 char tempname[] = _PATH_VARTMP "pw.XXXXXXXXXX"; in main() local 133 dfd = mkostemp(tempname, O_CLOEXEC); in main() 135 pw_error(tempname, 1, 1); in main() 136 display(tempname, dfd, pw); in main() 142 if (unveil(tempname, "rc") == -1) in main() 143 err(1, "unveil %s", tempname); in main() 148 edit_status = edit(tempname, pw); in main() 150 unlink(tempname); in main() 160 pw_error(tempname, 1, 1); in main()
|
| /openbsd-src/usr.sbin/pkg_add/OpenBSD/ |
| H A D | Add.pm | 510 my ($fh, $tempname) = OpenBSD::Temp::permanent_file($d, "pkg"); 511 $self->{tempname} = $tempname; 512 if (!defined $tempname) { 520 return ($fh, $tempname); 556 my ($fh, $tempname) = $self->may_create_temp($d, $state); 558 return if !defined $tempname; 559 unlink($tempname); 560 $state->say("link #1 -> #2", $src, $tempname) 562 link($src, $tempname) || $state->copy_file($src, $tempname); 622 if (!defined $self->{tempname}) { [all …]
|
| H A D | PackingElement.pm | 273 sub set_tempname($self, $tempname) 275 $self->{tempname} = $tempname; 281 if (defined $self->{tempname}) { 282 $name = $self->{tempname}; 360 if (defined $self->{tempname}) { 361 say $fh "\@temp ", $self->{tempname}; 576 return if defined $self->{tempname};
|
| H A D | PkgCreate.pm | 632 my $tempname = $state->{mandir}.$fullname; 635 open my $fh, ">", $tempname; 637 $state->error("can't create #1: #2", $tempname, $!); 644 if (!$self->format($state, $tempname, $fh)) { 647 if (-z $tempname) { 657 $e->{wtempname} = $tempname;
|
| H A D | PackageRepository.pm | 610 $object->{tempname} = $filename;
|
| /openbsd-src/gnu/usr.bin/texinfo/m4/ |
| H A D | mkstemp.m4 | 44 AC_LIBOBJ(tempname) 57 # Prerequisites of lib/tempname.c.
|
| /openbsd-src/usr.bin/unifdef/ |
| H A D | unifdef.c | 186 static char *tempname; /* avoid splatting input */ variable 421 tempname = astrcat(ofn, ".XXXXXX"); in processinout() 422 output = mktempmode(tempname, st.st_mode); in processinout() 424 err(2, "can't create %s", tempname); in processinout() 434 if (rename(tempname, ofn) == -1) in processinout() 435 err(2, "can't rename \"%s\" to \"%s\"", tempname, ofn); in processinout() 436 free(tempname); in processinout() 437 tempname = NULL; in processinout() 446 if (tempname != NULL) in cleantemp() 447 remove(tempname); in cleantemp()
|
| /openbsd-src/usr.bin/rdistd/ |
| H A D | server.c | 50 char tempname[sizeof _RDIST_TMP + 1]; /* Tmp file name */ variable 1459 (void) strlcpy(new, tempname, sizeof(new)); in recvit() 1461 (void) snprintf(new, sizeof(new), "/%s", tempname); in recvit() 1465 tempname); in recvit() 1668 (void) strlcpy(tempname, _RDIST_TMP, sizeof(tempname)); in server()
|
| /openbsd-src/sbin/fsck_ffs/ |
| H A D | dir.c | 328 char tempname[BUFSIZ]; in linkup() local 399 (void)lftempname(tempname, orphan); in linkup() 400 if (makeentry(lfdir, orphan, tempname) == 0) { in linkup()
|
| /openbsd-src/sbin/fsck_ext2fs/ |
| H A D | dir.c | 362 char tempname[BUFSIZ]; in linkup() local 433 (void)lftempname(tempname, orphan); in linkup() 434 if (makeentry(lfdir, orphan, tempname) == 0) { in linkup()
|
| /openbsd-src/gnu/gcc/gcc/ |
| H A D | tree-ssa-structalias.c | 3917 char *tempname; in create_function_info_for() local 3925 asprintf (&tempname, "%s.arg%d", name, i-1); in create_function_info_for() 3926 newname = ggc_strdup (tempname); in create_function_info_for() 3927 free (tempname); in create_function_info_for() 3951 char *tempname; in create_function_info_for() local 3961 asprintf (&tempname, "%s.result", name); in create_function_info_for() 3962 newname = ggc_strdup (tempname); in create_function_info_for() 3963 free (tempname); in create_function_info_for() 4189 char *tempname; in create_variable_info_for() local 4195 asprintf (&tempname, "%s.%s", in create_variable_info_for() [all …]
|
| /openbsd-src/gnu/usr.bin/texinfo/lib/ |
| H A D | Makefile.in | 56 strerror.c strncasecmp.c tempname.c 282 @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/tempname.Po@am__quote@
|
| /openbsd-src/gnu/usr.bin/perl/ |
| H A D | perlio.c | 5469 char tempname[] = "/tmp/PerlIO_XXXXXX"; 5477 sv_catpv(sv, tempname + 4); 5484 fd = Perl_my_mkostemp_cloexec(tempname, imode | O_VMS_DELETEONCLOSE); 5489 sv_catpv(sv, tempname + 4); 5502 PerlLIO_unlink(sv ? SvPVX_const(sv) : tempname); 5044 char tempname[] = "/tmp/PerlIO_XXXXXX"; PerlIO_tmpfile_flags() local
|
| /openbsd-src/gnu/usr.bin/cvs/src/ |
| H A D | ChangeLog-97 | 2616 with new variable ${tempname}. For most of the tests this is a
|
| H A D | sanity.sh | 124 tempname="[-a-zA-Z0-9/.%_]*"
|
| /openbsd-src/gnu/usr.bin/texinfo/ |
| H A D | ChangeLog.46 | 1044 * lib/getopt*, strdup.c, tempname.c: update from gnulib (bruno 1367 * lib/mkstemp.c, lib/tempname.c: likewise.
|