Re: Accessing the file descriptor for an fstream (gcc3-)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 27 Aug 2003 08:59:55 -0500
Eljay Love-Jensen <eljay@xxxxxxxxx> wrote:

> Hi Sofia,
> 
> Support for accessing the file descriptor for an fstream has been removed for two reasons:
> 1) allowing it is in violation of the ISO 14882 specification
> 2) not all operating systems have file descriptors, and as such, it makes for non-portable code
> 
> When does a person want to access the file descriptor?  Well, for file locking purposes / record locking / range locking purposes.
> 
> That kind of functionality is, usually, very OS specific.  (Some OS's need to have a locking-enabled kernel compiled, special.)

Hmm.... what about making fd -> stdin, stdout, stderr?

> 
> For those kinds of purposes, an fstream is the wrong thing to use to access the file.
> 
> --Eljay
> 
> 
> 
> 


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux