this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

More fstream fixes

+10 -2
+5
src/libSystem/libc/stdio.cpp
··· 413 413 _ZN9__gnu_cxx13stdio_filebufIcSt11char_traitsIcEEC1EP8_IO_FILESt13_Ios_Openmodem(pThis, f->linux_fp, m, l); 414 414 } 415 415 416 + void _ZN9__gnu_cxx13stdio_filebufIcSt11char_traitsIcEEC2EP7__sFILESt13_Ios_Openmodem(__gnu_cxx::stdio_filebuf<char, std::char_traits<char> >* pThis, __darwin_FILE* f, std::_Ios_Openmode m, unsigned long l) 417 + { 418 + _ZN9__gnu_cxx13stdio_filebufIcSt11char_traitsIcEEC1EP8_IO_FILESt13_Ios_Openmodem(pThis, f->linux_fp, m, l); 419 + } 420 + 416 421 #elif defined(__i386__) 417 422 418 423 // TODO: x86
+1
src/libSystem/libc/stdio.h
··· 115 115 116 116 std::__basic_file<char>* _ZNSt12__basic_fileIcE8sys_openEP7__sFILESt13_Ios_Openmode(std::__basic_file<char>* pThis, __darwin_FILE* f, std::ios_base::openmode mode); 117 117 void _ZN9__gnu_cxx13stdio_filebufIcSt11char_traitsIcEEC1EP7__sFILESt13_Ios_Openmodem(__gnu_cxx::stdio_filebuf<char, std::char_traits<char> >* pThis, __darwin_FILE* f, std::_Ios_Openmode m, unsigned long l); 118 + void _ZN9__gnu_cxx13stdio_filebufIcSt11char_traitsIcEEC2EP7__sFILESt13_Ios_Openmodem(__gnu_cxx::stdio_filebuf<char, std::char_traits<char> >* pThis, __darwin_FILE* f, std::_Ios_Openmode m, unsigned long l); 118 119 119 120 } 120 121
+4 -2
tests/src/fstream.cpp
··· 16 16 int main() 17 17 { 18 18 //__gnu_cxx::stdio_filebuf<char> out; 19 - char text[8001] = ""; 20 19 const char* file = "/tmp/__test123"; 21 20 22 21 for (int i = 0; i < 800; i++) ··· 40 39 void test2() 41 40 { 42 41 std::filebuf out2; 42 + size_t len; 43 43 out2.open(file, std::ios_base::binary|std::ios_base::in|std::ios_base::out|std::ios_base::trunc); 44 - out2.sputn(text, strlen(text)); 44 + len = strlen(text); 45 + printf("Len %d\n", len); 46 + out2.sputn(text, len); 45 47 out2.close(); 46 48 47 49 printFile(file);