c++ Programming Glossary: dup
Do programmers of other languages, besides C++, use, know or understand RAII? http://stackoverflow.com/questions/165723/do-programmers-of-other-languages-besides-c-use-know-or-understand-raii  std runtime_error Cannot open file return stream FILE fdup const int dupfd dup fileno file_ if dupfd 1 throw std runtime_error.. Cannot open file return stream FILE fdup const int dupfd dup fileno file_ if dupfd 1 throw std runtime_error Cannot.. Cannot open file return stream FILE fdup const int dupfd dup fileno file_ if dupfd 1 throw std runtime_error Cannot dup file.. 
 freopen: reverting back to original stream http://stackoverflow.com/questions/1673764/freopen-reverting-back-to-original-stream  improve this question   This can be achieved using fileno dup and dup2 calls. I have tried this on linux not sure whether.. this question   This can be achieved using fileno dup and dup2 calls. I have tried this on linux not sure whether this will.. pos printf stdout fflush stdout fgetpos stdout pos fd dup fileno stdout freopen stdout.out w stdout f fflush stdout dup2.. 
 Difference between reference and const reference as function parameter? http://stackoverflow.com/questions/1719818/difference-between-reference-and-const-reference-as-function-parameter  right afterwards. Looking a little more this is a virtual dup of this question http stackoverflow.com questions 1565600 non.. 
 C++: Redirecting STDOUT http://stackoverflow.com/questions/4810516/c-redirecting-stdout  setbuf thing works fine. I ended up doing the fancier dup dup2 thing redirecting to a pipe. Update I wrote a blog post.. setbuf thing works fine. I ended up doing the fancier dup dup2 thing redirecting to a pipe. Update I wrote a blog post showing.. to a pipe. Update I wrote a blog post showing the dup2 method I ended up using which you can read here . It's written.. 
 C++ Boost.ASIO: passing accepted TCP connection from one opened socket to another using Windows APIs ( while works with Linux APIs)? http://stackoverflow.com/questions/5326564/c-boost-asio-passing-accepted-tcp-connection-from-one-opened-socket-to-anothe    pi.iProtocol IPPROTO_TCP pi 0 0 char sText I can use my duplicated socket via WinApi r n int nRet send socketDup sText strlen.. socketDup sText strlen sText 0 #else linux int socketDup dup socket.native tested on Linux works #endif try tcp socket s.. DuplicateHandle function. Operations performed with such duplicate handles generate completion notifications. Careful consideration.. 
 
 
     
      |