Searched refs:tmpfile (Results 1 - 25 of 109) sorted by relevance

12345

/macosx-10.9.5/bash-92/bash-3.2/examples/scripts.noah/
H A Dmktmp.bash28 local tmpfile="${template}${RANDOM}"
39 (> "${tmpfile}") 2> /dev/null
44 if [ ! -e "${tmpfile}" ]; then
47 > "${tmpfile}"
50 tmpfile="${template}${RANDOM}"
51 (> "${tmpfile}") 2> /dev/null
56 while [ -e "${tmpfile}" ]; do
57 tmpfile="${template}${RANDOM}"
61 echo "${tmpfile}"
H A Dsend_mail.bash37 local tmpfile="/tmp/send_mail$$"
39 while [ -e "${tmpfile}" ]; do
40 tmpfile="/tmp/send_mail${RANDOM}"
46 sed '/^\.\.*/s/^\(\.\.*\)$/\1./' > "${tmpfile}"
51 eval $(${awk} -f - "${tmpfile}" <<- '__EOF__'
130 $(cat "${tmpfile}")
135 rm -f "${tmpfile}"
/macosx-10.9.5/ksh-20/ksh/src/lib/libast/stdio/
H A Dtmpfile.c27 tmpfile(void) function
/macosx-10.9.5/apache-786.1/httpd/build/
H A Dbsd_makefile26 tmpfile=`mktemp /tmp/bsd_makefile.XXXXXX 2>/dev/null` || tmpfile="tmp.$$"
28 sed 's/^include \(.*\)/.include "\1"/' $i >$tmpfile \
29 && cp $tmpfile $i
31 rm -f $tmpfile
H A Dsysv_makefile26 tmpfile=`mktemp /tmp/sysv_makefile.XXXXXX 2>/dev/null` || tmpfile="tmp.$$"
28 sed 's/^\.include "\(.*\)"/include \1/' $i >$tmpfile \
29 && cp $tmpfile $i
31 rm -f $tmpfile
/macosx-10.9.5/dtrace-118.1/test/tst/common/funcs/
H A Dtst.freopen.ksh30 $dtrace -o $tmpfile -s /dev/stdin $tmpfile <<EOF
56 if [ -f $tmpfile ]; then
57 rm $tmpfile
61 if [ -f $tmpfile.$i ]; then
62 rm $tmpfile.$i
69 tmpfile=/tmp/tst.freopen.$$
77 if [ -f $tmpfile.$iter ]; then
78 echo "$0: did not expect to find file: $tmpfile.$iter"
83 mv $tmpfile
[all...]
H A Dtst.ftruncate.ksh30 $dtrace -q -o $tmpfile -s /dev/stdin <<EOF
51 tmpfile=/tmp/tst.ftruncate.$$
56 cat $tmpfile
57 rm $tmpfile
H A Dtst.badfreopen.ksh30 $dtrace -o $tmpfile -s /dev/stdin 2> $errfile <<EOF
75 tmpfile=/tmp/tst.badfreopen.$$
82 i=`cat $tmpfile`
85 echo "$0: unexpected contents in $tmpfile: " \
100 rm $tmpfile $errfile
/macosx-10.9.5/dtrace-118.1/test/tst/common/pid/
H A Dtst.manypids.ksh41 tmpfile=/tmp/dtest.$$
54 # echo "tick-1sec\n{\n\texit(0);\n}\n" > $tmpfile
55 echo "tick-1sec{exit(0);}" > $tmpfile
58 # echo "pid${pids[$i]}::malloc:entry\n{}\n" >> $tmpfile
59 echo "pid${pids[$i]}::malloc:entry{}" >> $tmpfile
63 $dtrace -s $tmpfile
66 rm $tmpfile
/macosx-10.9.5/ruby-104/ruby/test/resolv/
H A Dtest_addr.rb20 Tempfile.open('resolv_test_addr_') do |tmpfile|
21 tmpfile.print("\xff\x00\x40")
22 tmpfile.close
23 hosts = Resolv::Hosts.new(tmpfile.path)
/macosx-10.9.5/configd-596.15/Plugins/IPMonitor/
H A Dtest_reference.sh3 tmpfile=/tmp/test_reference_output$$.txt
7 if [ -f "${tmpfile}" ]; then
8 echo removing "${tmpfile}"
9 rm -f "${tmpfile}"
75 run_program "${program}" "${filter}" > "${tmpfile}"
76 cmp "${tmpfile}" "${ref_file}"
79 diff "${tmpfile}" "${ref_file}"
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/tests/scripts/
H A Dtest030-relay76 tmpfile=savelog.log
77 if test -f $tmpfile ; then
78 rm -f $tmpfile
100 mv -f $LOG1 $tmpfile
106 if test -f $tmpfile ; then
107 mv $tmpfile $LOG1
/macosx-10.9.5/ruby-104/ruby/lib/
H A Dtempfile.rb146 @data[1] = @tmpfile = File.open(tmpname, mode, opts)
153 super(@tmpfile)
158 @tmpfile.close if @tmpfile
159 @tmpfile = File.open(@tmpname, @mode, @opts)
160 @data[1] = @tmpfile
161 __setobj__(@tmpfile)
166 @tmpfile.close if @tmpfile
168 @tmpfile
[all...]
/macosx-10.9.5/ruby-104/ruby/test/webrick/
H A Dtest_httpauth.rb34 tmpfile = Tempfile.new("test_webrick_auth")
35 tmpfile.close
36 tmp_pass = WEBrick::HTTPAuth::Htpasswd.new(tmpfile.path)
41 htpasswd = WEBrick::HTTPAuth::Htpasswd.new(tmpfile.path)
62 tmpfile.close(true)
67 tmpfile = Tempfile.new("test_webrick_auth")
68 tmpfile.puts("webrick:{SHA}GJYFRpBbdchp595jlh3Bhfmgp8k=")
69 tmpfile.flush
71 WEBrick::HTTPAuth::Htpasswd.new(tmpfile.path)
73 tmpfile
[all...]
/macosx-10.9.5/CPANInternal-140/Test-Simple/t/Builder/
H A Doutput.t26 my $tmpfile = 'foo.tmp';
27 END { 1 while unlink($tmpfile) }
31 my $out = $tb->output($tmpfile);
38 open(IN, $tmpfile) or die $!;
48 open(FOO, ">>$tmpfile") or die $!;
55 open(IN, $tmpfile) or die $!;
/macosx-10.9.5/postfix-252/postfix/src/local/
H A Dmaildir.c84 char *tmpfile; local
186 tmpfile = concatenate(tmpdir, STR(buf), (char *) 0);
188 if ((dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0
191 || (dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0)) {
193 "create maildir file %s: %m", tmpfile);
201 msg_fatal("fstat %s: %m", tmpfile);
213 if (sane_link(tmpfile, newfile) < 0
216 || sane_link(tmpfile, newfile) < 0)) {
222 if (unlink(tmpfile) < 0)
223 msg_warn("remove %s: %m", tmpfile);
[all...]
/macosx-10.9.5/postfix-252/postfix/src/virtual/
H A Dmaildir.c79 char *tmpfile; local
180 tmpfile = concatenate(tmpdir, STR(buf), (char *) 0);
182 if ((dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0
185 || (dst = vstream_fopen(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0600)) == 0)) {
187 "create maildir file %s: %m", tmpfile);
195 msg_fatal("fstat %s: %m", tmpfile);
207 if (sane_link(tmpfile, newfile) < 0
210 || sane_link(tmpfile, newfile) < 0)) {
216 if (unlink(tmpfile) < 0)
217 msg_warn("remove %s: %m", tmpfile);
[all...]
/macosx-10.9.5/apache-786.1/httpd/srclib/apr-util/build/
H A Dw32locatedb.pl139 my ($tmpfile, $file, $maybe) = @_;
145 rename($tmpfile, $file);
148 unlink($tmpfile);
157 my $tmpfile = "$file.tmp";
161 open(TMP, "> $tmpfile") or die "Can't open $tmpfile: $!";
172 maybe_rename_with_backup($tmpfile, $file, $substs > 0);
180 my $tmpfile = "$file.tmp";
188 open(TMP, "> $tmpfile") or die "Can't open $tmpfile
[all...]
/macosx-10.9.5/apr-30/apr-util/apr-util/build/
H A Dw32locatedb.pl139 my ($tmpfile, $file, $maybe) = @_;
145 rename($tmpfile, $file);
148 unlink($tmpfile);
157 my $tmpfile = "$file.tmp";
161 open(TMP, "> $tmpfile") or die "Can't open $tmpfile: $!";
172 maybe_rename_with_backup($tmpfile, $file, $substs > 0);
180 my $tmpfile = "$file.tmp";
188 open(TMP, "> $tmpfile") or die "Can't open $tmpfile
[all...]
/macosx-10.9.5/CPANInternal-140/Log-Log4perl/t/
H A D048lwp.t38 my $tmpfile = Log::Log4perl::Util::tmpfile_name();
39 END { unlink $tmpfile };
40 $ua->get("file:$tmpfile");
46 like($data, qr#\QGET file:$tmpfile\E#);
63 $ua->get("file:$tmpfile");
85 $ua->get("file:$tmpfile");
/macosx-10.9.5/CPANInternal-140/Log-Log4perl-1.40/t/
H A D048lwp.t45 my $tmpfile = Log::Log4perl::Util::tmpfile_name();
46 END { unlink $tmpfile };
47 $ua->get("file:$tmpfile");
53 like($data, qr#\QGET file:$tmpfile\E#);
70 $ua->get("file:$tmpfile");
92 $ua->get("file:$tmpfile");
/macosx-10.9.5/bind9-45.100/bind9/unit/atf-src/test-programs/
H A Dsh_helpers.sh41 touch $(atf_config_get tmpfile)
46 rm $(atf_config_get tmpfile)
57 touch $(atf_config_get tmpfile)
63 rm $(atf_config_get tmpfile)
74 touch $(atf_config_get tmpfile)
80 rm $(atf_config_get tmpfile)
105 touch $(atf_config_get tmpfile)
107 touch $(atf_config_get tmpfile).no
111 rm $(atf_config_get tmpfile)
/macosx-10.9.5/BerkeleyDB-21/db/test/
H A Dtxn002.tcl76 set tmpfile $dir/printlog.out
77 set stat [catch {exec $util_path/db_printlog -h $dir > $tmpfile} ret]
80 set f [open $tmpfile r]
88 fileremove $tmpfile
/macosx-10.9.5/groff-38/groff/contrib/gdiffmk/tests/
H A Druntests.in39 tmpfile=/tmp/$$
40 trap 'rm -f ${tmpfile}' 0 1 2 3 15
46 ${command} ${srcdir}/file1 ${srcdir}/file2 ${ResultFile} 2>${tmpfile}
47 cat ${tmpfile} >>${ResultFile}
/macosx-10.9.5/ruby-104/ruby/test/cgi/
H A Dtest_cgi_multipart.rb140 tmpfile = Tempfile.new('test_cgi_multipart')
141 @tempfiles << tmpfile
142 tmpfile.binmode
143 tmpfile << input
144 tmpfile.rewind()
145 $stdin = tmpfile

Completed in 251 milliseconds

12345