This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4559] freopen failed if asked to open /dev/stdin
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 May 2007 22:07:39 -0000
- Subject: [Bug libc/4559] freopen failed if asked to open /dev/stdin
- References: <20070529175344.4559.addw@phcomp.co.uk>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.