From 299fd052511a4ee7fe08a0fe0488876ab108a033 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 3 Sep 2004 01:35:50 +0000 Subject: Output correct errno-related diagnostic on "paste" I/O errors. Improve diet libc port. --- ChangeLog | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a8d1e4655..b2b625dde 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,11 +1,16 @@ 2004-09-02 Paul Eggert - Port to diet libc. Problem reported by Felix von Leitner in - . + Output correct errno-related diagnostic on "paste" I/O errors. + * src/paste.c (write_error, xputchar): New functions. + (paste_parallel): Use correct errno value after input error. + (paste_parallel, paste_serial): Report errno value after output error. + + Port to diet libc. Problem reported by Felix von Leitner in: + http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00171.html * src/paste.c (dummy_closed, CLOSED, dummy_endlist, ENDLIST): Remove; it's not portable C to assume FILE is a complete type. - (paste_parallel): Use null instead of ENDLIST, and an explicit - boolean instead of CLOSED. + (paste_parallel): Use index test instead of ENDLIST, and NULL + instead of CLOSED. 2004-08-24 Paul Eggert -- cgit v1.2.3-70-g09d2