Lines Matching refs:tmpfile
32 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 ) == -1 )
105 rename( tmpfile, "._dir" );
114 char tmpfile[ STRLEN ];
119 MakeTmpFile( lpath, tmpfile, sizeof(tmpfile) );
121 ans = GopherXferDir( srv, tmpfile );
123 ans = GopherXferFile( srv, tmpfile );
125 if( (ans = GopherXferDir( srv, tmpfile )) == -1 ) {
126 ans = GopherXferFile( srv, tmpfile );
129 unlink( tmpfile );