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

/ast/src/lib/libast/stdio/
H A Dtmpfile.c27 tmpfile(void) function
/ast/src/cmd/cs/vcs_src/
H A Difs_gopher.c32 GopherXfer( srv, rpath, tmpfile )
35 char *tmpfile;
63 if( (fout = fopen( tmpfile, "w" )) == NULL ) {
78 GopherXferFile( srv, tmpfile )
80 char *tmpfile;
85 if( GopherXfer( srv, buf, tmpfile ) == -1 )
88 rename( tmpfile, srv->lpath );
93 GopherXferDir( srv, tmpfile )
95 char *tmpfile;
100 if( GopherXfer( srv, buf, tmpfile )
114 char tmpfile[ STRLEN ]; local
[all...]
H A Difs_rsh.c41 char tmpfile[ STRLEN ], buf[ STRLEN ]; local
63 MakeTmpFile( lpath, tmpfile, sizeof(tmpfile) );
64 if( (fd = open( tmpfile, O_WRONLY|O_CREAT, 0644 )) < 0 ) {
75 ftp_makedents( tmpfile );
76 rename( tmpfile, "._dir" );
84 MakeTmpFile( lpath, tmpfile, sizeof(tmpfile) );
85 sfsprintf( buf, sizeof(buf), "rcp %s:%s %s", cmd, rpath, tmpfile );
91 if( !DashF( tmpfile ) )
[all...]
H A Difs_http.c102 HttpXfer( srv, rpath, linkfile, tmpfile )
106 char *tmpfile;
117 if( (fout = fopen( tmpfile, "w" )) == NULL ) {
118 logit( "<http>: tmpfile open error\n" );
176 HttpXferDir( srv, tmpfile )
178 char *tmpfile;
187 ans = HttpXfer( srv, rpath, linkfile, tmpfile );
194 HttpConvert( tmpfile, "index.html", "._dir" );
205 HttpXferFile( srv, tmpfile )
207 char *tmpfile;
236 char tmpfile[ STRLEN ]; local
[all...]
H A Difs_ftp.c184 ftp_makedents( tmpfile )
185 char *tmpfile;
193 if( (fdir = fopen( tmpfile, "r" )) == NULL )
327 FtpXfer( srv, cmd, rpath, tmpfile )
331 char *tmpfile;
350 if( (fd = open( tmpfile, O_WRONLY|O_CREAT|O_TRUNC, 0644 )) < 0 ) {
369 FtpXferFile( srv, tmpfile )
371 char *tmpfile;
378 if( FtpXfer( srv, "RETR", rpath, tmpfile ) == -1 ) {
382 rename( tmpfile, lpat
508 char tmpfile[ STRLEN ]; local
[all...]
/ast/src/cmd/ksh93/tests/
H A Dbuiltins.sh516 tmpfile=$tmp/file.2
517 print $'\nprint -r -- "${.sh.file} ${LINENO} ${.sh.lineno}"' > $tmpfile
518 [[ $( . "$tmpfile") == "$tmpfile 2 1" ]] || err_exit 'dot command not working'
519 print -r -- "'xxx" > $tmpfile
520 [[ $($SHELL -c ". $tmpfile"$'\n print ok' 2> /dev/null) == ok ]] || err_exit 'syntax error in dot command affects next command'
H A Dsubshell.sh566 tmpfile=$tmp/foo
567 cat > $tmpfile <<-\EOF
570 $SHELL 2> /dev/null "$tmpfile" || err_exit 'IFS in subshell causes core dump'
/ast/src/cmd/nmake/
H A Dobject.c792 state.tmpfile = strdup(sfstruse(sp));
794 if (!(cs.fp = sfopen(NiL, state.tmpfile, "brw")))
796 error(ERROR_SYSTEM|1, "%s: cannot create temporary object file", state.tmpfile);
805 error(ERROR_SYSTEM|3, "%s: object file header write error", state.tmpfile);
833 error(ERROR_SYSTEM|3, "%s: object file optional header write error", state.tmpfile);
859 error(ERROR_SYSTEM|3, "%s: object file variable write error", state.tmpfile);
920 error(ERROR_SYSTEM|3, "%s: object file rule write error", state.tmpfile);
941 error(ERROR_SYSTEM|3, "%s: object file prerequisite write error", state.tmpfile);
993 error(ERROR_SYSTEM|3, "%s: temporary object file header write error", state.tmpfile);
1001 if (rename(state.tmpfile, objfil
[all...]
H A Dcommand.c244 if (fp = sfopen(NiL, state.tmpfile, "re"))
245 remove(state.tmpfile);
247 error(2, "%s: cannot read temporary data output file %s", r->name, state.tmpfile);
249 state.tmpfile = 0;
735 state.tmpfile = dot;
741 state.tmpfile = tmp;
760 if (!(job->cojob = coexec(state.coshell, t, job->flags, state.tmpfile, NiL, sfstruse(att))))
787 if (sp = sfopen(NiL, state.tmpfile, "r"))
789 remove(state.tmpfile);
807 error(2, "%s: cannot read temporary data output file %s", job->target->name, state.tmpfile);
[all...]
H A Dmake.h855 char* tmpfile; /* temporary file name */ member in struct:State_s
/ast/src/cmd/re/
H A Ded.c152 char* tmpfile; member in struct:__anon200
922 if (ed.tmpfile) {
923 remove(ed.tmpfile);
924 ed.tmpfile = 0;
1173 if (!ed.tmpfile && !(ed.tmpfile = pathtemp(NiL, 0, NiL, error_info.id, NiL)))
1175 if (!(ed.iop = sfopen(NiL, ed.tmpfile, "w")))
1176 error(ERROR_SYSTEM|2, "%s: cannot create temp file", ed.tmpfile);
1177 error_info.file = ed.tmpfile;
1183 sfprintf(ed.buffer.line, " < %s", ed.tmpfile);
[all...]
/ast/src/lib/libvcodex/
H A Dvcodex.h85 #define sftmp(n) tmpfile()
/ast/src/lib/libast/
H A DMakefile178 stdio/tmpfile.c ungetc.c vfprintf.c vfscanf.c vprintf.c \

Completed in 85 milliseconds