Lines Matching refs:fp

183 	FILE	*fp = fopen( tmpnam( g_szReportFile ), "w" );  in write_report()  local
186 fprintf( fp, in write_report()
214 fprintf( fp, in write_report()
223 fprintf( fp, "<systeminfo:CPU type=\"%s\"/>\n", xml_encode( info.machine ).c_str() ); in write_report()
224 fprintf( fp, "</systeminfo:systeminfo>\n" ); in write_report()
229 fcopy( fp, fpxml ); in write_report()
236 fcopy( fp, fpchk ); in write_report()
240 fprintf( fp, "</errormail:errormail>\n" ); in write_report()
242 fclose( fp ); in write_report()
251 FILE *fp = fopen( tmpnam( g_szDescriptionFile ), "w" ); in write_description() local
253 if ( fp ) in write_description()
256 fprintf( fp, "\xEF\xBB\xBF" ); in write_description()
257 fprintf( fp, "%s\n", rSettings.find( "DESCRIPTION" )->second.c_str() ); in write_description()
258 fclose( fp ); in write_description()
306 FILE *fp, in SendHTTPRequest() argument
339 fseek( fp, 0, SEEK_END ); in SendHTTPRequest()
340 size_t length = ftell( fp ); in SendHTTPRequest()
341 fseek( fp, 0, SEEK_SET ); in SendHTTPRequest()
376 nBytes = fread( buffer, 1, sizeof(buffer), fp ); in SendHTTPRequest()
419 static void WriteSOAPRequest( FILE *fp ) in WriteSOAPRequest() argument
421 fprintf( fp, in WriteSOAPRequest()
433 fprintf( fp, "<rds:submitReport>\n" ); in WriteSOAPRequest()
434 …fprintf( fp, "<body xsi:type=\"xsd:string\">This is an autogenerated crash report mail.</body>\n" … in WriteSOAPRequest()
435 fprintf( fp, "<hash xsi:type=\"apache:Map\">\n" ); in WriteSOAPRequest()
440 fprintf( fp, in WriteSOAPRequest()
444 fcopy( fp, fpin ); in WriteSOAPRequest()
445 fprintf( fp, "]]></value></item>\n" ); in WriteSOAPRequest()
452 fprintf( fp, in WriteSOAPRequest()
456 fcopy( fp, fpin ); in WriteSOAPRequest()
457 fprintf( fp, "]]></value></item>\n" ); in WriteSOAPRequest()
464 fprintf( fp, in WriteSOAPRequest()
468 fcopy( fp, fpin ); in WriteSOAPRequest()
469 fprintf( fp, "]]></value></item>\n" ); in WriteSOAPRequest()
473 fprintf( fp, in WriteSOAPRequest()
542 FILE *fp = fopen( filename, "r" ); in append_file() local
543 if ( fp ) in append_file()
546 while (fgets(buf, sizeof(buf), fp) != NULL) in append_file()
550 fclose( fp ); in append_file()
671 static bool read_line( FILE *fp, string& rLine ) in read_line() argument
679 while ( !bEOL && fgets( szBuffer, sizeof(szBuffer), fp ) ) in read_line()
700 FILE *fp = fopen( pFileName, "r" ); in get_script_string() local
703 if ( fp ) in get_script_string()
708 while ( read_line( fp, line ) ) in get_script_string()
741 fclose( fp ); in get_script_string()
749 FILE *fp = fopen( pFileName, "r" ); in get_profile_string() local
752 if ( fp ) in get_profile_string()
757 while ( read_line( fp, line ) ) in get_profile_string()
794 fclose( fp ); in get_profile_string()
813 FILE *fp = fopen( rFileName.c_str(), "r" ); in read_from_file() local
815 if ( fp ) in read_from_file()
820 while( 0 != ( nBytesRead = fread( buffer, 1, sizeof(buffer) - 1, fp ) ) ) in read_from_file()
826 fclose( fp ); in read_from_file()
857 FILE *fp = fopen( sFile.c_str(), "w" ); in write_crash_data() local
859 if ( fp ) in write_crash_data()
865 fcopy( fp, fpin ); in write_crash_data()
869 fclose( fp ); in write_crash_data()
877 fp = fopen( sFile.c_str(), "w" ); in write_crash_data()
879 if ( fp ) in write_crash_data()
885 fcopy( fp, fpin ); in write_crash_data()
889 fclose( fp ); in write_crash_data()
897 fp = fopen( sFile.c_str(), "w" ); in write_crash_data()
899 if ( fp ) in write_crash_data()
901 fprintf( fp, "Unsent\n" ); in write_crash_data()
902 fclose( fp ); in write_crash_data()
918 FILE *fp = fopen( sRCFile.c_str(), "w" );
920 if ( fp )
922 fprintf( fp, "[Options]\n" );
923 fprintf( fp, "UseProxy=%s\n", rSettings.find( "USEPROXY" )->second.c_str() );
924 fprintf( fp, "ProxyServer=%s\n", rSettings.find( "SERVER" )->second.c_str() );
925 fprintf( fp, "ProxyPort=%s\n", rSettings.find( "PORT" )->second.c_str() );
926 fprintf( fp, "ReturnAddress=%s\n", rSettings.find( "EMAIL" )->second.c_str() );
927 fprintf( fp, "AllowContact=%s\n", rSettings.find( "CONTACT" )->second.c_str() );
928 fclose( fp );