[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. a75ad0f08b9ce3
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. a75ad0f08b9ce337bc06a4be560488d3eacdea75 |
Date: |
Sun, 09 Oct 2011 19:15:32 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, gawk-4.0-stable has been updated
via a75ad0f08b9ce337bc06a4be560488d3eacdea75 (commit)
from edf4bdbef22dc370a9c9b262160d40ca8d6834a1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=a75ad0f08b9ce337bc06a4be560488d3eacdea75
commit a75ad0f08b9ce337bc06a4be560488d3eacdea75
Author: Arnold D. Robbins <address@hidden>
Date: Sun Oct 9 21:14:52 2011 +0200
Fixes for io noticed on PC, and also pc versions.
diff --git a/ChangeLog b/ChangeLog
index 40bda5f..4edb164 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-09-30 Eli Zaretskii <address@hidden>
+
+ * io.c (remap_std_file): Fix non-portable code that caused
+ redirected "print" to fail if a previous read from standard input
+ returned EOF. Reported by David Millis <address@hidden>.
+ (remap_std_file): Per Eli's suggestion, removed the leading close
+ of oldfd and will let dup2 do the close for us.
+
2011-10-09 Arnold D. Robbins <address@hidden>
* dfa.c: Sync with GNU grep.
diff --git a/io.c b/io.c
index df79499..e423a43 100644
--- a/io.c
+++ b/io.c
@@ -444,9 +444,14 @@ remap_std_file(int oldfd)
int newfd;
int ret = -1;
- close(oldfd);
- newfd = open("/dev/null", O_RDWR);
- if (newfd >= 0 && newfd != oldfd) {
+ /*
+ * Give OS-specific routines in gawkmisc.c chance to interpret
+ * "/dev/null" as appropriate for their platforms.
+ */
+ newfd = os_devopen("/dev/null", O_RDWR);
+ if (newfd == INVALID_HANDLE)
+ newfd = open("/dev/null", O_RDWR);
+ if (newfd >= 0) {
/* dup2() will close oldfd for us first. */
ret = dup2(newfd, oldfd);
if (ret == 0)
diff --git a/pc/ChangeLog b/pc/ChangeLog
index 8aaeb41..8f676de 100644
--- a/pc/ChangeLog
+++ b/pc/ChangeLog
@@ -1,3 +1,7 @@
+2011-09-30 Eli Zaretskii <address@hidden>
+
+ * config.h: Update packaging related versions.
+
2011-06-23 Arnold D. Robbins <address@hidden>
* ChangeLog.0: Rotated ChangeLog into this file.
diff --git a/pc/config.h b/pc/config.h
index 4dd797c..69c511d 100644
--- a/pc/config.h
+++ b/pc/config.h
@@ -416,16 +416,19 @@
#define PACKAGE_NAME "GNU Awk"
/* Define to the full name and version of this package. */
-#define PACKAGE_STRING "GNU Awk 3.1.5a"
+#define PACKAGE_STRING "GNU Awk 4.0.0"
/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "gawk"
+/* Define to the home page for this package. */
+#define PACKAGE_URL "http://www.gnu.org/software/gawk/"
+
/* Define to the version of this package. */
-#define PACKAGE_VERSION "3.1.5a"
+#define PACKAGE_VERSION "4.0.0"
/* Version number of package */
-#define VERSION "3.1.5a"
+#define VERSION "4.0.0"
/* Number of bits in a file offset, on hosts where this is settable. */
/* #undef _FILE_OFFSET_BITS */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 ++++++++
io.c | 11 ++++++++---
pc/ChangeLog | 4 ++++
pc/config.h | 9 ++++++---
4 files changed, 26 insertions(+), 6 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, gawk-4.0-stable, updated. a75ad0f08b9ce337bc06a4be560488d3eacdea75,
Arnold Robbins <=