Home
last modified time | relevance | path

Searched refs:tmp_file (Results 1 – 16 of 16) sorted by relevance

/netbsd-src/usr.bin/patch/
H A Dbackupfile.c64 char *dir, *base_versions, *tmp_file; in find_backup_file_name() local
69 tmp_file = strdup(file); in find_backup_file_name()
70 if (tmp_file == NULL) in find_backup_file_name()
72 base_versions = concat(basename(tmp_file), ".~"); in find_backup_file_name()
73 free(tmp_file); in find_backup_file_name()
76 tmp_file = strdup(file); in find_backup_file_name()
77 if (tmp_file == NULL) { in find_backup_file_name()
81 dir = dirname(tmp_file); in find_backup_file_name()
84 free(tmp_file); in find_backup_file_name()
89 free(tmp_file); in find_backup_file_name()
/netbsd-src/external/lgpl3/mpc/dist/tests/
H A Dtio_str.c118 char tmp_file[] = "mpc_test"; in check_io_str() local
122 if (!(fp = fopen (tmp_file, "w"))) in check_io_str()
124 printf ("Error: Could not open file %s in write mode\n", tmp_file); in check_io_str()
131 if (!(fp = fopen (tmp_file, "r"))) in check_io_str()
133 printf ("Error: Could not open file %s in read mode\n", tmp_file); in check_io_str()
139 "in file %s\n", tmp_file); in check_io_str()
162 char tmp_file[] = "mpc_test"; in check_stdout() local
168 if (freopen (tmp_file, "w", stdout) == NULL) in check_stdout()
181 if (freopen (tmp_file, "r", stdin) == NULL) in check_stdout()
189 "in file %s\n", tmp_file); in check_stdout()
/netbsd-src/external/gpl2/lvm2/dist/lib/filters/
H A Dfilter-persistent.c183 char *tmp_file; in persistent_filter_dump() local
236 tmp_file = alloca(strlen(pf->file) + 5); in persistent_filter_dump()
237 sprintf(tmp_file, "%s.tmp", pf->file); in persistent_filter_dump()
239 if (!(fp = fopen(tmp_file, "w"))) { in persistent_filter_dump()
242 log_sys_error("fopen", tmp_file); in persistent_filter_dump()
254 if (lvm_fclose(fp, tmp_file)) in persistent_filter_dump()
257 if (rename(tmp_file, pf->file)) in persistent_filter_dump()
258 log_error("%s: rename to %s failed: %s", tmp_file, pf->file, in persistent_filter_dump()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/recipes/
H A D80-test_ssl_new.t124 my $tmp_file = "${conf}.$$.tmp";
134 stdout => $tmp_file)),
142 $run_test = is(cmp_text($tmp_file, $conf_file), 0,
150 ok(run(test(["ssl_test", $tmp_file])), "running ssl_test $conf");
153 unlink glob $tmp_file;
/netbsd-src/external/bsd/kyua-testers/dist/
H A Datf_main.c120 FILE* tmp_file = fopen(path, mode); in create_file_in_work_directory() local
121 if (tmp_file == NULL) { in create_file_in_work_directory()
126 *file = tmp_file; in create_file_in_work_directory()
/netbsd-src/external/gpl2/groff/dist/contrib/gdiffmk/tests/
H A Druntests.in11 rm -fv test_result* tmp_file*
/netbsd-src/external/gpl3/binutils.old/dist/gprofng/src/
H A DPrint.cc62 tmp_file = dbeSession->get_tmp_file_name (NTXT ("print"), false); in open()
63 dbeSession->tmp_files->append (strdup (tmp_file)); in open()
64 out_file = fopen (tmp_file, NTXT ("w")); in open()
89 pr_params.ncopies, tmp_file); in print_output()
92 pr_params.name, pr_params.ncopies, tmp_file); in print_output()
95 unlink (tmp_file); in print_output()
115 int st = stat (tmp_file, &sbuf); in get_output()
123 tmp_file); in get_output()
127 FILE *f = fopen (tmp_file, "r"); in get_output()
130 tmp_file); in get_output()
[all …]
H A DPrint.h114 char *tmp_file; variable
/netbsd-src/external/gpl3/binutils/dist/gprofng/src/
H A DPrint.cc62 tmp_file = dbeSession->get_tmp_file_name (NTXT ("print"), false); in open()
63 dbeSession->tmp_files->append (strdup (tmp_file)); in open()
64 out_file = fopen (tmp_file, NTXT ("w")); in open()
89 pr_params.ncopies, tmp_file); in print_output()
92 pr_params.name, pr_params.ncopies, tmp_file); in print_output()
95 unlink (tmp_file); in print_output()
115 int st = stat (tmp_file, &sbuf); in get_output()
123 tmp_file); in get_output()
127 FILE *f = fopen (tmp_file, "r"); in get_output()
130 tmp_file); in get_output()
[all …]
H A DPrint.h114 char *tmp_file; variable
/netbsd-src/external/bsd/byacc/dist/test/
H A Dgrammar.y323 FILE *tmp_file; /* temporary file */ member
730 fputs(cur_text(), cur_file->tmp_file);
739 fputs(" =", cur_file->tmp_file);
/netbsd-src/external/lgpl3/gmp/dist/tune/
H A Dmany.pl1018 my $tmp_file = "tmp-$objbase.c";
/netbsd-src/external/lgpl3/gmp/dist/
H A Dconfigure.ac3290 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
3291 if test -f $tmp_file; then
3293 # If the host uses a non-standard ABI, check if tmp_file supports it
3296 abi=[`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `]
3365 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
3372 if grep "^PROLOGUE(mpn_${tmp_fbase}_cps)" $tmp_file >/dev/null; then
3425 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
3426 if test -f $tmp_file; then
3450 nails=[`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `]
3474 # If the host uses a non-standard ABI, check if tmp_file supports it
[all …]
H A Dconfigure25252 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
25253 if test -f $tmp_file; then
25258 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
25343 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
25350 if grep "^PROLOGUE(mpn_${tmp_fbase}_cps)" $tmp_file >/dev/null; then
25448 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
25449 if test -f $tmp_file; then
25473 nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
25500 abi=`sed -n 's/^[ ]*ABI_SUPPORT(\(.*\))/\1/p' $tmp_file `
25527 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A DREADME.ssltest.md245 unlink glob $tmp_file;
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A DREADME.ssltest.md236 unlink glob $tmp_file;