I am porting some code to Darwin OS X and as part of the change, we are moving from gcc to the clang compiler.
The code has a feature dating back to 2005 and located in several places on the Internet. It provides functions for several different old versions of GCC, I edited everything except the last one it offers, v3.4.0 or later. The code depends on two special GCC classes: __gnu_cxx::stdio_filebuf and __gnu_cxx::stdio_sync_filebuf .
The question is, for clang 5.1 on OS X Mavericks, would there be a way to compute the file descriptor for std::basic_ios ?
c ++ iostream file-descriptor porting macos
WilliamKF
source share