Don't require lib/stdio-write.c when only module 'stdio' is used.
[pspp] / ChangeLog
index e01dd6b58dc2751bb37b2c2814e5b953ffe37f03..580cfa34e376fec50bdb25a5c0de3495a8cb08dd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,203 @@
+2011-04-15  Bruno Haible  <bruno@clisp.org>
+
+       Don't require lib/stdio-write.c when only module 'stdio' is used.
+       * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
+       invocation.
+       Reported by Rob Vermaas <rob.vermaas@gmail.com>.
+
+2011-04-14  Bruno Haible  <bruno@clisp.org>
+
+       Support non-blocking pipe I/O in read() on native Windows.
+       * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
+       (read): New declaration.
+       * lib/read.c: New file.
+       * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
+       _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
+       (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
+       vscanf): New declarations.
+       * lib/stdio-read.c: New file.
+       * m4/read.m4: New file.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
+       REPLACE_READ.
+       * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
+       GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
+       GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
+       desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
+       (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
+       GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
+       GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
+       * modules/read: New file.
+       * modules/nonblocking (Files): Add lib/stdio-read.c.
+       * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
+       * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
+       GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
+       GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
+       * modules/pread (Depends-on): Add read.
+       * modules/safe-read (Depends-on): Likewise.
+       * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
+       gets, scanf, vfscanf, vscanf): Verify signatures.
+       * doc/posix-functions/read.texi: Mention 'nonblocking' module and
+       problem with non-blocking pipes.
+       * doc/posix-functions/fgetc.texi: Likewise.
+       * doc/posix-functions/fgets.texi: Likewise.
+       * doc/posix-functions/fread.texi: Likewise.
+       * doc/posix-functions/fscanf.texi: Likewise.
+       * doc/posix-functions/getc.texi: Likewise.
+       * doc/posix-functions/getchar.texi: Likewise.
+       * doc/posix-functions/gets.texi: Likewise.
+       * doc/posix-functions/scanf.texi: Likewise.
+       * doc/posix-functions/vfscanf.texi: Likewise.
+       * doc/posix-functions/vscanf.texi: Likewise.
+
+2011-04-14  Bruno Haible  <bruno@clisp.org>
+
+       Support non-blocking pipe I/O in write() on native Windows.
+       * lib/write.c (rpl_write): Split a write request that failed merely
+       because the byte count was larger than the pipe buffer's size.
+       * doc/posix-functions/write.texi: Mention the problem with large byte
+       counts.
+
+2011-04-14  Bruno Haible  <bruno@clisp.org>
+
+       wchar: Ensure that wchar_t gets defined on uClibc.
+       * lib/wchar.in.h: On uClibc, include <stddef.h>.
+       Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
+
+2011-04-13  Bruno Haible  <bruno@clisp.org>
+
+       safe-write, full-read: Avoid unnecessary compilation units.
+       * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
+       (Depends-on): Remove safe-read. Add ssize_t.
+       * modules/full-read (Files): Add lib/full-write.c.
+       (Depends-on): Add full-write.
+
+2011-04-13  Bruno Haible  <bruno@clisp.org>
+
+       Support non-blocking pipe I/O and SIGPIPE in pwrite().
+       * modules/pwrite (Depends-on): Add 'write'.
+
+2011-04-13  Bruno Haible  <bruno@clisp.org>
+
+       Support non-blocking pipe I/O in write() on native Windows.
+       * lib/unistd.in.h (write): Enable replacement also if
+       GNULIB_UNISTD_H_NONBLOCKING is 1.
+       * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
+       (rpl_write): When failing to write on a non-blocking pipe, change
+       errno from ENOSPC to EAGAIN.
+       * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
+       putchar, puts, vfprintf, vprintf): Enable replacement also if
+       GNULIB_STDIO_H_NONBLOCKING is 1.
+       * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
+       (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
+       (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
+       CALL_WITH_SIGPIPE_EMULATION.
+       (CALL_WITH_SIGPIPE_EMULATION): Use them.
+       * m4/nonblocking.m4: New file.
+       * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
+       for non-blocking I/O support.
+       * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
+       GNULIB_UNISTD_H_NONBLOCKING.
+       * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
+       required for non-blocking I/O support.
+       (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
+       * modules/nonblocking (Files): Add m4/nonblocking.m4,
+       lib/stdio-write.c, m4/asm-underscore.m4.
+       (Depends-on): Add stdio, unistd.
+       (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
+       Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
+       * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
+       * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
+       * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
+       problem with non-blocking pipes.
+       * doc/posix-functions/fputc.texi: Likewise.
+       * doc/posix-functions/fputs.texi: Likewise.
+       * doc/posix-functions/fwrite.texi: Likewise.
+       * doc/posix-functions/printf.texi: Likewise.
+       * doc/posix-functions/putc.texi: Likewise.
+       * doc/posix-functions/putchar.texi: Likewise.
+       * doc/posix-functions/puts.texi: Likewise.
+       * doc/posix-functions/vfprintf.texi: Likewise.
+       * doc/posix-functions/vprintf.texi: Likewise.
+       * doc/posix-functions/write.texi: Likewise.
+
+2011-04-10  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: prohibit doubled words
+       Detect them also when they're separated by a newline.
+       There are 3 ways to customize it:
+         - disable the test on a per file basis, as usual with rules using
+           $(VC_LIST_EXCEPT)
+         - replace the default doubled-word-selecting regexp (affects all files)
+         - ignore a particular file-vs-doubled-word match
+       I nearly used that last one to ignore the "is is" match in
+       coreutils' NEWS file, since the text was "ls -is is ..."
+       To do that, I would have added this line to cfg.mk:
+         ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
+       but it would have ignored any "is is" match in NEWS.
+       Low probability, but still...
+       Instead, I changed the text, slightly:
+         -  ls -is is now consistent with ls -lis in ignoring values returned
+         +  "ls -is" is now consistent with ls -lis in ignoring values returned
+       * top/maint.mk (prohibit_double_word_RE_): Provide default.
+       (prohibit_doubled_word_): Define.
+       (sc_prohibit_doubled_word): New rule.
+       (sc_prohibit_the_the): Remove.  Subsumed by the above.
+
+2011-04-10  Jim Meyering  <meyering@redhat.com>
+
+       maint: fix doubled-word typo in comment
+       * m4/gethostname.m4: s/is is/it is/
+       * m4/getdomainname.m4: Likewise.
+
+2011-04-10  Jim Meyering  <meyering@redhat.com>
+
+       maint: remove doubled word: s/it it/it/
+       * lib/stat-time.h (get_stat_birthtime): s/it it/it/
+
+2011-04-10  Jim Meyering  <meyering@redhat.com>
+
+       maint.mk: remove useless semicolon and backslash
+       * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
+       semicolon and backslash.
+
+2011-04-10  Bruno Haible  <bruno@clisp.org>
+
+       stdint test: Fix compilation failure on OSF/1 with DTK compiler.
+       * modules/stdint-tests (Depends-on): Add wchar.
+
+2011-04-10  Jim Meyering  <meyering@redhat.com>
+
+       maint: remove doubled words in comments, e.g., s/a a/a/
+       * lib/strptime.c (day_of_the_week): s/the the/the/
+       * tests/test-chown.h (test_chown): s/a a/a/
+
+       test-chown.h: correct a cast
+       * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
+       when the destination is a stat.st_gid.
+
+2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
+
+       getaddrinfo: Fix test for sa_len member.
+       * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
+       include <sys/types.h> before <sys/socket.h>.
+
+2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       maint: change "can not" to "cannot"
+       * doc/posix-functions/iconv.texi (iconv): This one crossed line
+       boundaries.
+
 2011-04-09  Jim Meyering  <meyering@redhat.com>
 
+       maint: change "a a" to "a"
+       * tests/test-lchown.h (test_lchown): s/a a/a/
+
+       maint.mk: prohibit \<the the\>
+       * top/maint.mk (sc_prohibit_the_the): New rule.
+
+       maint: fix "the the" in comment
+       * lib/count-one-bits.h: s/the the/the/
+
        maint: change "can not" to "cannot"
        But do not change the occurrences in maintain.texi or in
        build-aux/po/Makefile.in.in, which I presume comes from gettext.
        * tests/test-open.h (test_open): Likewise.
        * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
 
-       careadlink: fix compilation error on mingw
+       careadlinkat: fix compilation error on mingw
        * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
        within struct allocator.