Symbol: tempfile
bin/pax/extern.h
234
extern char *tempfile;
bin/pax/pax.c
240
tempfile = malloc(tdlen + 1 + sizeof(_TFILE_BASE));
bin/pax/pax.c
241
if (tempfile == NULL) {
bin/pax/pax.c
246
memcpy(tempfile, tmpdir, tdlen);
bin/pax/pax.c
247
tempbase = tempfile + tdlen;
bin/pax/pax.c
92
char *tempfile; /* tempfile to use for mkstemp(3) */
bin/pax/tables.c
1095
if ((dirfd = mkstemp(tempfile)) >= 0) {
bin/pax/tables.c
1096
(void)unlink(tempfile);
bin/pax/tables.c
1100
tempfile);
bin/pax/tables.c
339
if ((ffd = mkstemp(tempfile)) < 0) {
bin/pax/tables.c
341
tempfile);
bin/pax/tables.c
344
(void)unlink(tempfile);
tests/sys/kern/unix_passfd_test.c
1203
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
1357
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
368
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
390
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
414
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
438
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
459
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
477
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
582
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
609
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
645
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
739
tempfile(&putfd);
tests/sys/kern/unix_passfd_test.c
787
tempfile(&putfd_1);
tests/sys/kern/unix_passfd_test.c
788
tempfile(&putfd_2);
tests/sys/kern/unix_passfd_test.c
875
tempfile(&putfd);
usr.bin/diff/diffreg.c
522
char buf[BUFSIZ], tempfile[PATH_MAX];
usr.bin/diff/diffreg.c
531
(void)strlcpy(tempfile, _PATH_TMP "/diff.XXXXXXXX", sizeof(tempfile));
usr.bin/diff/diffreg.c
533
if ((ofd = mkstemp(tempfile)) == -1) {
usr.bin/diff/diffreg.c
537
unlink(tempfile);
usr.bin/xinstall/xinstall.c
1011
if (rename(tempfile, to_name) < 0) {
usr.bin/xinstall/xinstall.c
1013
unlink(tempfile);
usr.bin/xinstall/xinstall.c
1016
tempfile, to_name);
usr.bin/xinstall/xinstall.c
819
char backup[MAXPATHLEN], pathbuf[MAXPATHLEN], tempfile[MAXPATHLEN];
usr.bin/xinstall/xinstall.c
900
to_fd = create_tempfile(to_name, tempfile,
usr.bin/xinstall/xinstall.c
901
sizeof(tempfile));
usr.bin/xinstall/xinstall.c
903
err(EX_OSERR, "%s", dirname(tempfile));
usr.bin/xinstall/xinstall.c
906
stripped = strip(tempfile, to_fd, from_name,
usr.bin/xinstall/xinstall.c
911
tempfile);
usr.bin/xinstall/xinstall.c
918
(void)strip(tempfile, to_fd, NULL, &digestresult);
usr.bin/xinstall/xinstall.c
925
to_fd = open(tempfile, O_RDONLY, 0);
usr.bin/xinstall/xinstall.c
942
(void)unlink(tempfile);
usr.bin/xinstall/xinstall.c
944
err(EX_OSERR, "%s", tempfile);
usr.bin/xinstall/xinstall.c
947
if (compare(temp_fd, tempfile, (size_t)temp_sb.st_size, to_fd,
usr.bin/xinstall/xinstall.c
957
(void)utimensat(AT_FDCWD, tempfile, tsb, 0);
usr.bin/xinstall/xinstall.c
960
(void)unlink(tempfile);
usr.bin/xinstall/xinstall.c
965
digestresult = digest_file(tempfile);
usr.bin/xinstall/xinstall.c
981
unlink(tempfile);
usr.bin/xinstall/xinstall.c
993
unlink(tempfile);
usr.bin/xinstall/xinstall.c
999
unlink(tempfile);
usr.sbin/newsyslog/newsyslog.c
2748
char *realfile, *slash, tempfile[MAXPATHLEN];
usr.sbin/newsyslog/newsyslog.c
2759
strlcpy(tempfile, realfile, sizeof(tempfile));
usr.sbin/newsyslog/newsyslog.c
2760
slash = strrchr(tempfile, '/');
usr.sbin/newsyslog/newsyslog.c
2763
failed = stat(tempfile, &st);
usr.sbin/newsyslog/newsyslog.c
2765
err(1, "Error on stat(%s)", tempfile);
usr.sbin/newsyslog/newsyslog.c
2767
createdir(ent, tempfile);
usr.sbin/newsyslog/newsyslog.c
2770
tempfile);
usr.sbin/newsyslog/newsyslog.c
2780
strlcpy(tempfile, realfile, sizeof(tempfile));
usr.sbin/newsyslog/newsyslog.c
2781
strlcat(tempfile, ".zXXXXXX", sizeof(tempfile));
usr.sbin/newsyslog/newsyslog.c
2783
printf("\tmktemp %s\n", tempfile);
usr.sbin/newsyslog/newsyslog.c
2785
fd = mkstemp(tempfile);
usr.sbin/newsyslog/newsyslog.c
2787
err(1, "can't mkstemp logfile %s", tempfile);
usr.sbin/newsyslog/newsyslog.c
2793
if (log_trim(tempfile, ent))
usr.sbin/newsyslog/newsyslog.c
2802
tempfile);
usr.sbin/newsyslog/newsyslog.c
2806
err(1, "can't fchown temp file %s", tempfile);
usr.sbin/newsyslog/newsyslog.c
2813
printf("\tchflags nodump %s\n", tempfile);
usr.sbin/newsyslog/newsyslog.c
2833
printf("\tchmod %o %s\n", ent->permissions, tempfile);
usr.sbin/newsyslog/newsyslog.c
2834
printf("\tmv %s %s\n", tempfile, realfile);
usr.sbin/newsyslog/newsyslog.c
2838
err(1, "can't fchmod temp file '%s'", tempfile);
usr.sbin/newsyslog/newsyslog.c
2839
failed = rename(tempfile, realfile);
usr.sbin/newsyslog/newsyslog.c
2841
err(1, "can't mv %s to %s", tempfile, realfile);