Lines Matching refs:fp

149 	FILE *fp = NULL;  in _tmpfile()  local
171 fp = _fdopen( fd, "w+b" ); in _tmpfile()
176 return fp; in _tmpfile()
210 FILE *fp = NULL; in _open_reportfile() local
218 fp = _xfopen( szAppDataPath, lpMode ); in _open_reportfile()
221 return fp; in _open_reportfile()
435 FILE *fp = _xfopen( szBuffer, _T("rb") ); in ReadFromEnvironment() local
437 if ( fp ) in ReadFromEnvironment()
444 …e ( 0 != (nBytesRead = fread( aUTF8Buffer, sizeof(aUTF8Buffer[0]), elementsof(aUTF8Buffer), fp )) ) in ReadFromEnvironment()
453 fclose( fp ); in ReadFromEnvironment()
670 FILE *fp = _fdopen( fd, "w+t" ); in WriteReportFile() local
680 fprintf( fp, in WriteReportFile()
690 fprintf( fp, in WriteReportFile()
694 fprintf( fp, in WriteReportFile()
715 fprintf( fp, in WriteReportFile()
725 fprintf( fp, "<systeminfo:CPU type=\"x86\"/>\n" ); in WriteReportFile()
726 fprintf( fp, "</systeminfo:systeminfo>\n" ); in WriteReportFile()
729 fcopy( g_fpStackFile, fp ); in WriteReportFile()
732 fcopy( g_fpChecksumFile, fp ); in WriteReportFile()
734 fprintf( fp, "</errormail:errormail>\n" ); in WriteReportFile()
736 fclose( fp ); in WriteReportFile()
911 FILE *fp = fopen( g_szReportFileNameA, "r" ); in PreviewDialogProc() local
913 if ( fp ) in PreviewDialogProc()
917 while ( fgets( buf, elementsof(buf), fp ) != NULL ) in PreviewDialogProc()
926 fclose( fp ); in PreviewDialogProc()
931 fp = fopen( g_szDumpFileNameA, "rb" ); in PreviewDialogProc()
933 if ( fp ) in PreviewDialogProc()
942 count = fread( buf, sizeof(buf[0]), sizeof(buf)/sizeof(buf[0]), fp ); in PreviewDialogProc()
972 fclose( fp ); in PreviewDialogProc()
1616 FILE *fp = fopen( filename, "rb" ); in calc_md5_checksum() local
1618 if ( fp ) in calc_md5_checksum()
1622 if ( 0 == fseek( fp, 0, SEEK_END ) && -1 != (nFileSize = ftell(fp)) ) in calc_md5_checksum()
1624 rewind( fp ); in calc_md5_checksum()
1627 size_t nBytesRead = fread( pBuffer, 1, nFileSize, fp ); in calc_md5_checksum()
1647 fclose( fp ); in calc_md5_checksum()
1659 FILE *fp = fopen( filename, "rb" );
1661 if ( fp )
1672 0 != (nBytesRead = fread( buffer, 1, sizeof(buffer), fp )) )
1689 fclose( fp );
2234 static bool read_line( FILE *fp, string& rLine ) in read_line() argument
2242 while ( !bEOL && fgets( szBuffer, sizeof(szBuffer), fp ) ) in read_line()
2263 FILE *fp = fopen( pFileName, "rt" ); in get_script_string() local
2266 if ( fp ) in get_script_string()
2271 while ( read_line( fp, line ) ) in get_script_string()
2304 fclose( fp ); in get_script_string()
2410 FILE *fp, in SendHTTPRequest() argument
2443 fseek( fp, 0, SEEK_END ); in SendHTTPRequest()
2444 size_t length = ftell( fp ); in SendHTTPRequest()
2445 fseek( fp, 0, SEEK_SET ); in SendHTTPRequest()
2474 nBytes = fread( buffer, 1, sizeof(buffer), fp ); in SendHTTPRequest()
2506 static void WriteSOAPRequest( FILE *fp ) in WriteSOAPRequest() argument
2508 fprintf( fp, in WriteSOAPRequest()
2520 fprintf( fp, "<rds:submitReport>\n" ); in WriteSOAPRequest()
2521 …fprintf( fp, "<body xsi:type=\"xsd:string\">This is an autogenerated crash report mail.</body>\n" … in WriteSOAPRequest()
2522 fprintf( fp, "<hash xsi:type=\"apache:Map\">\n" ); in WriteSOAPRequest()
2527 fprintf( fp, in WriteSOAPRequest()
2531 fcopy( fpin, fp ); in WriteSOAPRequest()
2532 fprintf( fp, "]]></value></item>\n" ); in WriteSOAPRequest()
2539 fprintf( fp, in WriteSOAPRequest()
2543 fcopy( fpin, fp ); in WriteSOAPRequest()
2544 fprintf( fp, "]]></value></item>\n" ); in WriteSOAPRequest()
2559 fprintf( fp, in WriteSOAPRequest()
2563 fcopy( fptemp, fp ); in WriteSOAPRequest()
2564 fprintf( fp, "</value></item>\n" ); in WriteSOAPRequest()
2571 fprintf( fp, in WriteSOAPRequest()
2917 FILE *fp = fopen( g_szReportFileNameA, "rb" ); in WinMain() local
2918 if ( fp ) in WinMain()
2920 fcopy( fp, fpPreview ); in WinMain()
2921 fclose( fp ); in WinMain()