Legalize access to file descriptors now! (So sue me.)

Jan Reimers janr@molienergy.com
Thu Feb 17 01:37:00 GMT 2005


Interesting read .. thank you.

How about the inverse problem: making a stream (or fstream) given a file
descriptor?  This arises when creating temporary files using mkstemp().

Regards
Jan

> -----Original Message-----
> From: Richard B. Kreckel [mailto:kreckel@ginac.de]
> Sent: Wednesday, February 16, 2005 2:56 PM
> To: libstdc++@gcc.gnu.org
> Subject: Legalize access to file descriptors now! (So sue me.)
> 
> 
> Since we've had the discussion whether to allow access to 
> file descriptors
> from C++ stream objects more than once without any result, I've had to
> hack my way through to the file descriptors by applying a 
> good amount of
> brute force (not to mention all the beer).
> 
> So, here is my lament: http://www.ginac.de/~kreckel/fileno/.  
> Could you
> folks please, please make the access a little bit more 
> smooth?  We need
> the
> file descriptor.  We are going to get it.  Don't prolong the agony.
> 
> -- 
> Richard B. Kreckel
> <http://www.ginac.de/~kreckel/>
> 



More information about the Libstdc++ mailing list