C++ Streams and the underlying file descriptor

Gabriel Dos Reis Gabriel.Dos-Reis@cmla.ens-cachan.fr
Sat Apr 1 00:00:00 GMT 2000


Kevin Atkinson <kevinatk@home.com> writes:

| Although not strictly defined by the C++ standard on almost all POSIX
| system all Filo IO has to done on top of file descriptors.  However the
| C++ standard defines NO way of getting to the underlying descriptor. 
| However, in my view, there ought to be a standard way of accessing the
| underlying file descriptor and creating a C++ stream from an existing
| descriptor on all POSIX systems.  Will the new libstdc++ provide such a
| way?  

I think v-3's primary goal is to provide a basic, working and reliable
C++ runtime support. 

I do not doubt there ought to be a *standard* way of accessing the
underlying file descriptor.  A good place to develop such a standard
is a C++ standards related list.  You might want to raise the question
on comp.std.c++.  If there appears to be a consensus on what that
standard should be, then probably v-3 might consider to implement it.

-- Gaby


More information about the Libstdc++ mailing list