This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/4559] freopen failed if asked to open /dev/stdin


------- Additional Comments From drepper at redhat dot com  2007-05-30 22:07 -------
(In reply to comment #2)
> I am trying to make life easy for the application writer.

By adding undue burden which negatively impacts everybody who doesn't need to
use this nonstandard way?  And the fact that the behavior is implemented like
this for 10+ years shows it is not (widely) used.

The standard is very clear:

The freopen() function shall first attempt to flush the stream and close any
file descriptor associated with stream.


The descriptor is closed and *then* we work on opening the new file.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://sourceware.org/bugzilla/show_bug.cgi?id=4559

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]