aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog16
1 files changed, 16 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0c0aa6a..1cb8f4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
2011-05-15 Ulrich Drepper <drepper@gmail.com>
+ * libio/freopen.c (freopen): Don't close old file descriptor
+ before the new one is opened. Instead dup the new file descriptor
+ to the old one after the new stream is created.
+ * libio/freopen64.c (freopen64): Likewise.
+ * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
+ * libio/fileops.c (_IO_new_file_close_it): Handle new
+ _IO_FLAGS2_NOCLOSE flag.
+ (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
+ If _IO_file_open didn't set FD_CLOEXEC do it after the call.
+ * libio/oldfileops.c (_IO_old_file_close_it): Handle new
+ _IO_FLAGS2_NOCLOSE flag.
+ * include/unistd.h: Add hidden_proto for dup3.
+ Define __have_dup3.
+ * io/dup3.c: Define hidden symbol.
+ * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
+
[BZ #7101]
* posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
when an incomplete long option is used.