| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/xattr/ |
| H A D | xattr_003_neg.ksh | 39 rm -f $testfile $tempfile 46 typeset tempfile=/tmp/tempfile.$$ 58 get_xattr passwd $testfile >$tempfile 60 log_mustnot diff -q /etc/passwd $tempfile 61 log_must rm $tempfile 68 get_xattr passwd $testfile >$tempfile 69 log_must diff -q /etc/passwd $tempfile 70 log_must rm $tempfile
|
| /freebsd/usr.sbin/periodic/etc/daily/ |
| H A D | 450.status-security | 27 if tempfile=`mktemp ${TMPDIR:-/tmp}/450.status-security.XXXXXX` 29 periodic security > $tempfile || rc=3 30 if [ -s "$tempfile" ]; then 31 cat "$tempfile" 34 rm -f "$tempfile"
|
| /freebsd/usr.sbin/periodic/etc/monthly/ |
| H A D | 450.status-security | 27 if tempfile=`mktemp ${TMPDIR:-/tmp}/450.status-security.XXXXXX` 29 periodic security > $tempfile || rc=3 30 if [ -s "$tempfile" ]; then 31 cat "$tempfile" 34 rm -f "$tempfile"
|
| /freebsd/usr.sbin/periodic/etc/weekly/ |
| H A D | 450.status-security | 27 if tempfile=`mktemp ${TMPDIR:-/tmp}/450.status-security.XXXXXX` 29 periodic security > $tempfile || rc=3 30 if [ -s "$tempfile" ]; then 31 cat "$tempfile" 34 rm -f "$tempfile"
|
| /freebsd/contrib/elftoolchain/elfcopy/ |
| H A D | archive.c | 67 char *tempfile; in process_ar_obj() local 71 create_tempfile(NULL, &tempfile, &fd); in process_ar_obj() 73 cleanup_tempfile(tempfile); in process_ar_obj() 86 cleanup_tempfile(tempfile); in process_ar_obj() 87 err(EXIT_FAILURE, "lseek failed for '%s'", tempfile); in process_ar_obj() 90 cleanup_tempfile(tempfile); in process_ar_obj() 98 cleanup_tempfile(tempfile); in process_ar_obj() 99 err(EXIT_FAILURE, "fstat %s failed", tempfile); in process_ar_obj() 102 cleanup_tempfile(tempfile); in process_ar_obj() 103 err(EXIT_FAILURE, "lseek %s failed", tempfile); in process_ar_obj() [all …]
|
| H A D | main.c | 652 char *tempfile, *elftemp; in create_file() local 656 tempfile = NULL; in create_file() 667 create_tempfile(src, &tempfile, &ofd); in create_file() 681 cleanup_tempfile(tempfile); in create_file() 705 cleanup_tempfile(tempfile); in create_file() 718 cleanup_tempfile(tempfile); in create_file() 727 cleanup_tempfile(tempfile); in create_file() 732 cleanup_tempfile(tempfile); in create_file() 740 cleanup_tempfile(tempfile); in create_file() 749 cleanup_tempfile(tempfile); in create_file() [all …]
|
| /freebsd/sys/contrib/libsodium/packaging/dotnet-core/ |
| H A D | prepare.py | 65 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile)) 69 f.write('{0}: {1}\n'.format(self.packfile, self.tempfile)) 73 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile)) 89 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile)) 93 f.write('{0}: {1}\n'.format(self.packfile, self.tempfile)) 97 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile)) 112 self.tempfile = os.path.join(self.tempdir, 'libsodium.so') 129 f.write('{0}: {1}\n'.format(self.packfile, self.tempfile)) 133 f.write('{0}: {1}\n'.format(self.tempfile, self.cachefile)) 149 self.tempfile = os.path.join(self.tempdir, os.path.normpath(self.itemfile)) [all …]
|
| /freebsd/stand/common/ |
| H A D | newvers.sh | 32 tempfile=$(mktemp tmp.XXXXXX) || exit 33 trap "rm -f $tempfile" EXIT INT TERM 66 cat > $tempfile <<EOF 70 mv $tempfile vers.c
|
| /freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/dtraceUtil/ |
| H A D | tst.AddSearchPath.d.ksh | 69 tempfile=/tmp/test.h 70 echo "#define VALUE 1520" > $tempfile 81 /bin/rm -f $tempfile
|
| /freebsd/bin/pax/ |
| H A D | pax.c | 92 char *tempfile; /* tempfile to use for mkstemp(3) */ variable 240 tempfile = malloc(tdlen + 1 + sizeof(_TFILE_BASE)); in main() 241 if (tempfile == NULL) { in main() 246 memcpy(tempfile, tmpdir, tdlen); in main() 247 tempbase = tempfile + tdlen; in main()
|
| H A D | tables.c | 339 if ((ffd = mkstemp(tempfile)) < 0) { in ftime_start() 341 tempfile); in ftime_start() 344 (void)unlink(tempfile); in ftime_start() 1095 if ((dirfd = mkstemp(tempfile)) >= 0) { in dir_start() 1096 (void)unlink(tempfile); in dir_start() 1100 tempfile); in dir_start()
|
| /freebsd/crypto/openssl/test/recipes/ |
| H A D | 70-test_tlsextms.t | 95 (undef, my $session) = tempfile(); 112 (undef, $session) = tempfile(); 129 (undef, $session) = tempfile(); 146 (undef, $session) = tempfile(); 163 (undef, $session) = tempfile();
|
| H A D | 70-test_sslsessiontick.t | 77 (undef, my $session) = tempfile(); 91 (undef, $session) = tempfile(); 113 (undef, $session) = tempfile();
|
| H A D | 90-test_sslapi.t | 39 (undef, my $tmpfilename) = tempfile();
|
| H A D | 70-test_tls13psk.t | 46 (undef, my $session) = tempfile();
|
| /freebsd/usr.bin/xinstall/ |
| H A D | xinstall.c | 819 char backup[MAXPATHLEN], pathbuf[MAXPATHLEN], tempfile[MAXPATHLEN]; in install() local 900 to_fd = create_tempfile(to_name, tempfile, in install() 901 sizeof(tempfile)); in install() 903 err(EX_OSERR, "%s", dirname(tempfile)); in install() 906 stripped = strip(tempfile, to_fd, from_name, in install() 911 tempfile); in install() 918 (void)strip(tempfile, to_fd, NULL, &digestresult); in install() 925 to_fd = open(tempfile, O_RDONLY, 0); in install() 942 (void)unlink(tempfile); in install() 944 err(EX_OSERR, "%s", tempfile); in install() [all …]
|
| /freebsd/sys/contrib/openzfs/contrib/pyzfs/libzfs_core/test/ |
| H A D | test_libzfs_core.py | 38 import tempfile 67 mntdir = tempfile.mkdtemp() 158 with tempfile.TemporaryFile(suffix='.zstream') as fd: 171 with tempfile.NamedTemporaryFile(dir=mntdir) as f: 197 with tempfile.TemporaryFile(suffix='.zstream') as full: 201 with tempfile.TemporaryFile(suffix='.zstream') as incremental: 215 with tempfile.NamedTemporaryFile() as f: 447 with tempfile.NamedTemporaryFile() as f: 1377 with tempfile.NamedTemporaryFile(dir=mntdir) as f: 1395 with tempfile.NamedTemporaryFile(dir=mntdir) as f: [all …]
|
| /freebsd/tools/test/hwpmc/ |
| H A D | pmctest.py | 27 import tempfile 67 tmpdir = tempfile.mkdtemp(prefix=program + "-", suffix="-counting-pmc") 71 tmpdir = tempfile.mkdtemp(prefix=program + "-", suffix="-sampling-pmc")
|
| /freebsd/usr.sbin/newsyslog/ |
| H A D | newsyslog.c | 2748 char *realfile, *slash, tempfile[MAXPATHLEN]; in createlog() local 2759 strlcpy(tempfile, realfile, sizeof(tempfile)); in createlog() 2760 slash = strrchr(tempfile, '/'); in createlog() 2763 failed = stat(tempfile, &st); in createlog() 2765 err(1, "Error on stat(%s)", tempfile); in createlog() 2767 createdir(ent, tempfile); in createlog() 2770 tempfile); in createlog() 2780 strlcpy(tempfile, realfile, sizeof(tempfile)); in createlog() 2781 strlcat(tempfile, ".zXXXXXX", sizeof(tempfile)); in createlog() 2783 printf("\tmktemp %s\n", tempfile); in createlog() [all …]
|
| /freebsd/tests/sys/kern/ |
| H A D | unix_passfd_test.c | 91 tempfile(int *fdp) in tempfile() function 368 tempfile(&putfd); in ATF_TC_BODY() 390 tempfile(&putfd); in ATF_TC_BODY() 414 tempfile(&putfd); in ATF_TC_BODY() 438 tempfile(&putfd); in ATF_TC_BODY() 459 tempfile(&putfd); in ATF_TC_BODY() 477 tempfile(&putfd); in ATF_TC_BODY() 582 tempfile(&putfd); in ATF_TC_BODY() 609 tempfile(&putfd); in ATF_TC_BODY() 645 tempfile(&putfd); in ATF_TC_BODY() [all …]
|
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | archive_read_disk_entry_from_file.c | 347 struct archive_string tempfile; in setup_mac_metadata() local 365 archive_string_init(&tempfile); in setup_mac_metadata() 366 archive_strcpy(&tempfile, name); in setup_mac_metadata() 367 archive_string_dirname(&tempfile); in setup_mac_metadata() 368 archive_strcat(&tempfile, "/tar.XXXXXXXX"); in setup_mac_metadata() 369 tempfd = __archive_mkstemp(tempfile.s); in setup_mac_metadata() 382 if (copyfile(name, tempfile.s, 0, copyfile_flags | COPYFILE_PACK)) { in setup_mac_metadata() 412 unlink(tempfile.s); in setup_mac_metadata() 414 archive_string_free(&tempfile); in setup_mac_metadata()
|
| /freebsd/contrib/libpcap/testprogs/ |
| H A D | visopts.py | 300 import tempfile 303 os.chdir(tempfile.mkdtemp(prefix="visopts-"))
|
| /freebsd/contrib/googletest/googletest/test/ |
| H A D | gtest_test_utils.py | 44 import tempfile 140 _temp_dir = tempfile.mkdtemp()
|
| /freebsd/crypto/openssl/util/ |
| H A D | withlibctx.pl | 19 my ($tmpfh, $tmpfile) = tempfile();
|
| /freebsd/contrib/libedit/ |
| H A D | vi.c | 1007 char tempfile[] = "/tmp/histedit.XXXXXXXXXX"; in vi_histedit() local 1020 fd = mkstemp(tempfile); in vi_histedit() 1044 execlp(editor, editor, tempfile, (char *)NULL); in vi_histedit() 1069 unlink(tempfile); in vi_histedit() 1076 unlink(tempfile); in vi_histedit()
|